From e2efb676ef0e70364f130c4097b7b9d67804753f Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 27 Jun 2005 12:12:18 -0700 Subject: [PATCH] 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. --- git-checkout-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-checkout-script b/git-checkout-script index 4b3ae4ad..ea7fef54 100755 --- a/git-checkout-script +++ b/git-checkout-script @@ -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 -- 2.11.0