Skip to content

Commit

Permalink
git-checkout-script: use "--verify --revs-only" to parse revs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Linus Torvalds committed Jun 27, 2005
1 parent e180884 commit e2efb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-checkout-script
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2efb67

Please sign in to comment.