projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b1174
)
git checkout: fix default head case
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Tue, 21 Jun 2005 18:14:47 +0000
(11:14 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Tue, 21 Jun 2005 18:14:47 +0000
(11:14 -0700)
The "${new=$old}" syntax only works for an undefined 'new', not for an
empty one. I knew that. Really. I'm not stupid.
git-checkout-script
patch
|
blob
|
history
diff --git
a/git-checkout-script
b/git-checkout-script
index
a3bfae7
..
5b49662
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