Skip to content

Commit a0f9858

Browse files
dschonalla
authored andcommitted
Windows: make sure that merge-octopus only outputs LF line endings
This happens to shut up t7602 on Windows which would otherwise take the different line endings for a sign that the merge failed. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent cae5461 commit a0f9858

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

git-merge-octopus.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ do
7171

7272
case "$LF$common$LF" in
7373
*"$LF$SHA1$LF"*)
74-
echo "Already up-to-date with $pretty_name"
74+
cat << EOF
75+
Already up-to-date with $pretty_name
76+
EOF
7577
continue
7678
;;
7779
esac
@@ -83,15 +85,19 @@ do
8385
# tree as the intermediate result of the merge.
8486
# We still need to count this as part of the parent set.
8587

86-
echo "Fast-forwarding to: $pretty_name"
88+
cat << EOF
89+
Fast-forwarding to: $pretty_name
90+
EOF
8791
git read-tree -u -m $head $SHA1 || exit
8892
MRC=$SHA1 MRT=$(git write-tree)
8993
continue
9094
fi
9195

9296
NON_FF_MERGE=1
9397

94-
echo "Trying simple merge with $pretty_name"
98+
cat << EOF
99+
Trying simple merge with $pretty_name
100+
EOF
95101
git read-tree -u -m --aggressive $common $MRT $SHA1 || exit 2
96102
next=$(git write-tree 2>/dev/null)
97103
if test $? -ne 0

0 commit comments

Comments
 (0)