[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>
This commit is contained in:
committed by
Linus Torvalds
parent
a38e727925
commit
f6e1a4d6dc
@ -16,7 +16,7 @@ do
|
||||
-m) shift
|
||||
case "$#" in
|
||||
0) usage ;;
|
||||
*) use_commit=`git-rev-parse "$1"` ||
|
||||
*) use_commit=`git-rev-parse --verify "$1"` ||
|
||||
exit ;;
|
||||
esac
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user