mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
a6dba2761e
commit
2478bed83f
1 file changed
+1
-1
@@ -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 ||:
|
||||
|
||||