summaryrefslogtreecommitdiff
path: root/git/merge.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-21 20:14:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-21 20:14:34 +0200
commit0e5a9e753e30be4aff2e6b4df00d402c49ba4507 (patch)
tree1d7c00e87088b123ad36608ebd4d6d27d1dbdc42 /git/merge.sh
parent8c7b95b021bd6f4509a03ac22240788f85c0e4b0 (diff)
Merge failures into non-master branches are ok (conflicts)
Diffstat (limited to 'git/merge.sh')
-rwxr-xr-xgit/merge.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/git/merge.sh b/git/merge.sh
index 34da466..898a0c0 100755
--- a/git/merge.sh
+++ b/git/merge.sh
@@ -28,8 +28,15 @@ for i in $modules; do
fi
if [ $? -ne 0 ]; then
+ echo 1>&2
echo "merge FAILED" 1>&2
- exit 1
+ echo 1>&2
+
+ # Merge failures (conflicts) into non-master branches are ok.
+ #
+ if [ "$br" = "master" ]; then
+ exit 1
+ fi
fi
cd $wd