Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git checkout: fix default head case
[gitweb.git]
/
git-checkout-script
diff --git
a/git-checkout-script
b/git-checkout-script
index a3bfae79dbf868c0a155dccb5d7b79fb3da2799e..5b49662e623a4f68f2796458daea3875911afb68 100755
(executable)
--- a/
git-checkout-script
+++ b/
git-checkout-script
@@
-29,7
+29,7
@@
while [ "$#" != "0" ]; do
esac
i=$(($i+1))
done
-: ${new=$old}
+[ -z "$new" ] && new=$old
if [ "$force" ]
then