提交 dc148411 编写于 作者: L Linus Torvalds

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.
上级 e8b11749
...@@ -29,7 +29,7 @@ while [ "$#" != "0" ]; do ...@@ -29,7 +29,7 @@ while [ "$#" != "0" ]; do
esac esac
i=$(($i+1)) i=$(($i+1))
done done
: ${new=$old} [ -z "$new" ] && new=$old
if [ "$force" ] if [ "$force" ]
then then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册