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 c554ec124b.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Andrew Cooper committed 2024-10-31 15:21:54 +00:00
1 parent a6dba2761e
commit 2478bed83f
1 file changed
+1 -1
+1 -1
View File
@@ -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 ||:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.