aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 12:12:18 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 12:12:18 -0700
commite2efb676ef0e70364f130c4097b7b9d67804753f (patch)
tree31f9661f0381ab4729790a229d19b48992b7be28
parente18088451d92fbf83bfb57fd48201eda117f8103 (diff)
downloadgit-e2efb676ef0e70364f130c4097b7b9d67804753f.tar.gz
git-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 4b3ae4adc..ea7fef54a 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