Skip to content

Commit

Permalink
git-merge: minor fix for no_trivial_merge_strategies.
Browse files Browse the repository at this point in the history
The shell loop to determine if we should skip the trivial
in-index merge stage based on what strategy is given was not
prepared to have more than one strategy listed in the variable
$no_trivial_merge_strategies.

This does not trigger unless you use a modified git but the fix
is simple and straightforward, so let's fix it before 1.5.0.1.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Feb 16, 2007
1 parent efa13f7 commit de6f0de
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions git-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,15 @@ esac

for s in $use_strategies
do
case " $s " in
*" $no_trivial_merge_strategies "*)
index_merge=f
break
;;
esac
for nt in $no_trivial_merge_strategies
do
case " $s " in
*" $nt "*)
index_merge=f
break
;;
esac
done
done

case "$#" in
Expand Down

0 comments on commit de6f0de

Please sign in to comment.