mirror of
https://github.com/git/git.git
synced 2024-11-25 02:44:48 +08:00
git checkout: fix default head case
The "${new=$old}" syntax only works for an undefined 'new', not for an empty one. I knew that. Really. I'm not stupid.
This commit is contained in:
parent
e8b11749f0
commit
dc14841102
@ -29,7 +29,7 @@ while [ "$#" != "0" ]; do
|
||||
esac
|
||||
i=$(($i+1))
|
||||
done
|
||||
: ${new=$old}
|
||||
[ -z "$new" ] && new=$old
|
||||
|
||||
if [ "$force" ]
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user