summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-07-02 19:53:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-02 19:53:04 (GMT)
commit6293aea559b6c8f224f748e5a2a641ddb6cca55a (patch)
tree0d67ca045e0ffb1d92a1a11e3e7aa4b7e58cc6b3 /t
parent8061ae8b4618d69a67ff6cfb687d7044964d4b04 (diff)
parent95104c7e257652b82aed089494def344e3938928 (diff)
downloadgit-6293aea559b6c8f224f748e5a2a641ddb6cca55a.zip
git-6293aea559b6c8f224f748e5a2a641ddb6cca55a.tar.gz
git-6293aea559b6c8f224f748e5a2a641ddb6cca55a.tar.bz2
Merge branch 'bc/fix-rebase-merge-skip'
"git rebase --skip" did not work well when it stopped due to a conflict twice in a row. * bc/fix-rebase-merge-skip: rebase--merge: fix --skip with two conflicts in a row
Diffstat (limited to 't')
-rwxr-xr-xt/t3402-rebase-merge.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t3402-rebase-merge.sh b/t/t3402-rebase-merge.sh
index be8c1d5..5a27ec9 100755
--- a/t/t3402-rebase-merge.sh
+++ b/t/t3402-rebase-merge.sh
@@ -33,6 +33,7 @@ test_expect_success setup '
tr "[a-z]" "[A-Z]" <original >newfile &&
git add newfile &&
git commit -a -m"side edits further." &&
+ git branch second-side &&
tr "[a-m]" "[A-M]" <original >newfile &&
rm -f original &&
@@ -41,6 +42,7 @@ test_expect_success setup '
git branch test-rebase side &&
git branch test-rebase-pick side &&
git branch test-reference-pick side &&
+ git branch test-conflicts side &&
git checkout -b test-merge side
'
@@ -138,4 +140,17 @@ test_expect_success 'rebase -s funny -Xopt' '
test -f funny.was.run
'
+test_expect_success 'rebase --skip works with two conflicts in a row' '
+ git checkout second-side &&
+ tr "[A-Z]" "[a-z]" <newfile >tmp &&
+ mv tmp newfile &&
+ git commit -a -m"edit conflicting with side" &&
+ tr "[d-f]" "[D-F]" <newfile >tmp &&
+ mv tmp newfile &&
+ git commit -a -m"another edit conflicting with side" &&
+ test_must_fail git rebase --merge test-conflicts &&
+ test_must_fail git rebase --skip &&
+ git rebase --skip
+'
+
test_done