]> xenbits.xensource.com Git - xen.git/commitdiff
Revert "scripts: Fix git-checkout.sh to work with branches other than master"
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 31 Oct 2024 15:21:54 +0000 (15:21 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 31 Oct 2024 15:21:54 +0000 (15:21 +0000)
While it does work with branches, it breaks working with full SHAs.

This reverts commit c554ec124b12f9c0d8bfb2b564ca239bd676037c.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
scripts/git-checkout.sh

index 3796cbfe39a7e739be86d6c7c19ccc7978e59018..fd4425ac4ee8687e0e88bfc89c1dfd4f0cc342a9 100755 (executable)
@@ -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 ||: