Skip to content

Commit de6f0de

Browse files
author
Junio C Hamano
committed
git-merge: minor fix for no_trivial_merge_strategies.
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>
1 parent efa13f7 commit de6f0de

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

git-merge.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,15 @@ esac
254254

255255
for s in $use_strategies
256256
do
257-
case " $s " in
258-
*" $no_trivial_merge_strategies "*)
259-
index_merge=f
260-
break
261-
;;
262-
esac
257+
for nt in $no_trivial_merge_strategies
258+
do
259+
case " $s " in
260+
*" $nt "*)
261+
index_merge=f
262+
break
263+
;;
264+
esac
265+
done
263266
done
264267

265268
case "$#" in

0 commit comments

Comments
 (0)