Audit rev-parse users.
Make sure that we say --verify when we want to get a single SHA1 name. Also when we say --verify, --revs-only is redundant. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -28,7 +28,7 @@ case "$#" in
|
||||
esac
|
||||
|
||||
git-read-tree -m -u $ours $upstream &&
|
||||
echo "$upstream" >"$GIT_DIR/HEAD" || exit
|
||||
git-rev-parse --verify "$upstream^0" >"$GIT_DIR/HEAD" || exit
|
||||
|
||||
tmp=.rebase-tmp$$
|
||||
fail=$tmp-fail
|
||||
|
Reference in New Issue
Block a user