aboutsummaryrefslogtreecommitdiff
path: root/git-cherry
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-07-22 19:09:05 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-22 20:34:16 -0700
commitf6e1a4d6dc4d1b3d82d5e87fdd817b3994dda5e0 (patch)
tree1322ada9a1dfcd001370437948ad2d4c24b8508b /git-cherry
parenta38e727925bfad369fc98165f6ff161193397f28 (diff)
downloadgit-f6e1a4d6dc4d1b3d82d5e87fdd817b3994dda5e0.tar.gz
git-f6e1a4d6dc4d1b3d82d5e87fdd817b3994dda5e0.tar.xz
[PATCH] Audit rev-parse users.
This patch changes rev-parse users that pass a single argument that is supposed to be a rev parameter to use "--verify". Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-cherry')
-rwxr-xr-xgit-cherry8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-cherry b/git-cherry
index e2a1a2db9..f3bfbf3a4 100755
--- a/git-cherry
+++ b/git-cherry
@@ -28,11 +28,11 @@ The output is intended to be used as:
'
case "$#" in
-1) linus=`git-rev-parse "$1"` &&
- junio=`git-rev-parse HEAD` || exit
+1) linus=`git-rev-parse --verify "$1"` &&
+ junio=`git-rev-parse --verify HEAD` || exit
;;
-2) linus=`git-rev-parse "$1"` &&
- junio=`git-rev-parse "$2"` || exit
+2) linus=`git-rev-parse --verify "$1"` &&
+ junio=`git-rev-parse --verify "$2"` || exit
;;
*) echo >&2 "$usage"; exit 1 ;;
esac