Skip to content

Commit

Permalink
Git checkout to a branch to avoid detached HEAD
Browse files Browse the repository at this point in the history
Minor improvement to hide the following advice:

Cloning into '/var/tmp/build/sambacc'...
Note: switching to 'e3e2a53bea5d'. You are in 'detached HEAD' state.

Signed-off-by: Anoop C S <anoopcs@samba.org>
  • Loading branch information
anoopcs9 authored and phlogistonjohn committed Sep 21, 2021
1 parent f3bd8e0 commit 89477bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/container/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ update() {
if [[ -d "$d/.hg" ]]; then
hg update --check "${node}"
else
git checkout "${node}"
git checkout -b "${node}" "${node}"
fi
}

Expand Down

0 comments on commit 89477bd

Please sign in to comment.