From: Andrew Cooper Date: Thu, 31 Oct 2024 15:21:54 +0000 (+0000) Subject: Revert "scripts: Fix git-checkout.sh to work with branches other than master" X-Git-Tag: 4.20.0-rc1~247 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2478bed83fc6d8be1d129d9a9617eda2ab3c9790;p=xen.git Revert "scripts: Fix git-checkout.sh to work with branches other than master" While it does work with branches, it breaks working with full SHAs. This reverts commit c554ec124b12f9c0d8bfb2b564ca239bd676037c. Signed-off-by: Andrew Cooper --- diff --git a/scripts/git-checkout.sh b/scripts/git-checkout.sh index 3796cbfe39..fd4425ac4e 100755 --- a/scripts/git-checkout.sh +++ b/scripts/git-checkout.sh @@ -14,7 +14,7 @@ set -e if test \! -d $DIR-remote; then rm -rf $DIR-remote $DIR-remote.tmp mkdir -p $DIR-remote.tmp; rmdir $DIR-remote.tmp - $GIT clone -b $TAG $TREE $DIR-remote.tmp + $GIT clone $TREE $DIR-remote.tmp if test "$TAG" ; then cd $DIR-remote.tmp $GIT branch -D dummy >/dev/null 2>&1 ||: