Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Windows: make sure that merge-octopus only outputs LF line endings
Browse files Browse the repository at this point in the history
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 <johannes.schindelin@gmx.de>
  • Loading branch information
dscho authored and kblees committed Aug 16, 2014
1 parent 29453a1 commit 1d4af23
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions git-merge-octopus.sh
Expand Up @@ -71,7 +71,9 @@ do

case "$LF$common$LF" in
*"$LF$SHA1$LF"*)
echo "Already up-to-date with $pretty_name"
cat << EOF
Already up-to-date with $pretty_name
EOF
continue
;;
esac
Expand All @@ -83,15 +85,19 @@ do
# tree as the intermediate result of the merge.
# We still need to count this as part of the parent set.

echo "Fast-forwarding to: $pretty_name"
cat << EOF
Fast-forwarding to: $pretty_name
EOF
git read-tree -u -m $head $SHA1 || exit
MRC=$SHA1 MRT=$(git write-tree)
continue
fi

NON_FF_MERGE=1

echo "Trying simple merge with $pretty_name"
cat << EOF
Trying simple merge with $pretty_name
EOF
git read-tree -u -m --aggressive $common $MRT $SHA1 || exit 2
next=$(git write-tree 2>/dev/null)
if test $? -ne 0
Expand Down

0 comments on commit 1d4af23

Please sign in to comment.