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:
@ -159,7 +159,7 @@ then
|
|||||||
shift
|
shift
|
||||||
head_arg="$1"
|
head_arg="$1"
|
||||||
shift
|
shift
|
||||||
elif ! git-rev-parse --verify HEAD 2>/dev/null
|
elif ! git-rev-parse --verify HEAD >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
# If the merged head is a valid one there is no reason to
|
# 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
|
# forbid "git merge" into a branch yet to be born. We do
|
||||||
|
Reference in New Issue
Block a user