[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
@ -11,11 +11,11 @@ upstream tree.'
|
||||
: ${GIT_DIR=.git}
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user