Skip to content

Commit

Permalink
git-merge: fix "fix confusion between tag and branch" for real
Browse files Browse the repository at this point in the history
An earlier commit 3683dc5 broke the merge message generation with
a careless use of && where it was not needed, breaking the merge
message for cases where non branches are given.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Dec 6, 2006
1 parent ebdf7b9 commit de51faf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions git-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ else
# in this loop.
merge_name=$(for remote
do
rh=$(git-rev-parse --verify "$remote"^0 2>/dev/null) &&
bh=$(git show-ref -s --verify "refs/heads/$remote" 2>/dev/null) &&
rh=$(git-rev-parse --verify "$remote"^0 2>/dev/null) ||
continue ;# not something we can merge
bh=$(git show-ref -s --verify "refs/heads/$remote" 2>/dev/null)
if test "$rh" = "$bh"
then
echo "$rh branch '$remote' of ."
Expand Down

0 comments on commit de51faf

Please sign in to comment.