summaryrefslogtreecommitdiff
path: root/git-checkout-script
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 19:12:18 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 19:12:18 (GMT)
commite2efb676ef0e70364f130c4097b7b9d67804753f (patch)
tree31f9661f0381ab4729790a229d19b48992b7be28 /git-checkout-script
parente18088451d92fbf83bfb57fd48201eda117f8103 (diff)
downloadgit-e2efb676ef0e70364f130c4097b7b9d67804753f.zip
git-e2efb676ef0e70364f130c4097b7b9d67804753f.tar.gz
git-e2efb676ef0e70364f130c4097b7b9d67804753f.tar.bz2
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.
Diffstat (limited to 'git-checkout-script')
-rwxr-xr-xgit-checkout-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-checkout-script b/git-checkout-script
index 4b3ae4a..ea7fef5 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