summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-08-11 13:48:36 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-08-11 15:36:23 +0100
commit75da546e42b202e22aafb7241b9819e51b1d6ea7 (patch)
tree849694503ce95436bad873838f1627f9a45a231f /tests
parent14940a67eb1525d69a8dade2777f8cd11200307c (diff)
git-debrebase: merge: test suite: test avoiding re-merge of debian/
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/gdr-merge11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/tests/gdr-merge b/tests/tests/gdr-merge
index 666672f..a213385 100755
--- a/tests/tests/gdr-merge
+++ b/tests/tests/gdr-merge
@@ -40,14 +40,25 @@ t-git-debrebase quick
git checkout -b other
t-some-changes other '' -other
+echo 'other-conflict' >>debian/zorkmid
+git commit -m 'other-conflict' debian/zorkmid
+
git checkout master
t-some-changes us-1 '' -us
t-git-debrebase new-upstream 2.1
t-some-changes us-2 '' -us
+echo 'us-conflict' >>debian/zorkmid
+git commit -m 'us-conflict' debian/zorkmid
t-git-debrebase quick
+t-expect-fail E:'Merge conflict in debian/zorkmid' \
git merge other
+perl -i~ -ne 'print unless m{^(?:\<\<\<|\>\>\>|===)}' debian/zorkmid
+
+git add debian/zorkmid
+git commit --no-edit
+
t-expect-fail E:'general two-parent merge' \
t-git-debrebase