From 89477bd6e6d810845d6faf21120d439b49a373af Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Tue, 21 Sep 2021 14:14:27 +0530 Subject: [PATCH] Git checkout to a branch to avoid detached HEAD 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 --- tests/container/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/container/build.sh b/tests/container/build.sh index 8f9f65f..d193c17 100755 --- a/tests/container/build.sh +++ b/tests/container/build.sh @@ -24,7 +24,7 @@ update() { if [[ -d "$d/.hg" ]]; then hg update --check "${node}" else - git checkout "${node}" + git checkout -b "${node}" "${node}" fi }