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

git-checkout-script: use "--verify --revs-only" to parse revs

Sven Verdoolaege points out that I added the --verify option to
git-rev-parse exactly for things like this, but didn't update the
users.
上级 e1808845
......@@ -12,7 +12,7 @@ while [ "$#" != "0" ]; do
force=1
;;
*)
rev=$(git-rev-parse "$arg")
rev=$(git-rev-parse --verify --revs-only "$arg")
if [ -z "$rev" ]; then
echo "unknown flag $arg"
exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册