summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c0b7391)
raw | patch | inline | side by side (parent: c0b7391)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 6 Dec 2006 18:52:04 +0000 (10:52 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 6 Dec 2006 18:52:04 +0000 (10:52 -0800) |
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>
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>
git-merge.sh | patch | blob | history |
diff --git a/git-merge.sh b/git-merge.sh
index 272f004622572ad2aed62268d9a75cac5a8fa751..efdbabf7753ac1ceaf2a39f0cc2a0cb4c41957c5 100755 (executable)
--- a/git-merge.sh
+++ b/git-merge.sh
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 ."