mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
git-merge: squelch needless error message.
While deciding if the new style command line argument is a tag or a branch, we checked it with "git show-ref -s --verify" to see if results in an error, but when it is not a branch, the check leaked the error message out, which was not needed to be shown to the end user. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
c0b7391bf5
commit
211e6eb513
@ -189,7 +189,7 @@ else
|
||||
merge_name=$(for remote
|
||||
do
|
||||
rh=$(git-rev-parse --verify "$remote"^0 2>/dev/null) &&
|
||||
bh=$(git show-ref -s --verify "refs/heads/$remote") &&
|
||||
bh=$(git show-ref -s --verify "refs/heads/$remote" 2>/dev/null) &&
|
||||
if test "$rh" = "$bh"
|
||||
then
|
||||
echo "$rh branch '$remote' of ."
|
||||
|
Loading…
Reference in New Issue
Block a user