git-merge: do not leak rev-parse output used for checking internally.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
51901e96bf
commit
c175161638
@ -159,7 +159,7 @@ then
|
||||
shift
|
||||
head_arg="$1"
|
||||
shift
|
||||
elif ! git-rev-parse --verify HEAD 2>/dev/null
|
||||
elif ! git-rev-parse --verify HEAD >/dev/null 2>&1
|
||||
then
|
||||
# If the merged head is a valid one there is no reason to
|
||||
# forbid "git merge" into a branch yet to be born. We do
|
||||
|
Loading…
Reference in New Issue
Block a user