summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 12:12:18 -0700
committerLibravatar Linus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 12:12:18 -0700
commite2efb676ef0e70364f130c4097b7b9d67804753f (patch)
tree31f9661f0381ab4729790a229d19b48992b7be28
parentcsum-file interface updates: return resulting SHA1 (diff)
downloadtgif-e2efb676ef0e70364f130c4097b7b9d67804753f.tar.xz
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.
-rwxr-xr-xgit-checkout-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-checkout-script b/git-checkout-script
index 4b3ae4adc2..ea7fef54ab 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