summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-06-01 06:06:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-01 06:06:40 (GMT)
commit95dd4b2b14db912b482320c0a69518e77e7af19a (patch)
tree2669be208ec8d5660fa69ebda9006e16a0abd3d7 /t
parentcbb408e6aef5b0d06facc16bb7a8615925894ad4 (diff)
parent5971b0836eece0ffcafe15fd5d67934787ea1777 (diff)
downloadgit-95dd4b2b14db912b482320c0a69518e77e7af19a.zip
git-95dd4b2b14db912b482320c0a69518e77e7af19a.tar.gz
git-95dd4b2b14db912b482320c0a69518e77e7af19a.tar.bz2
Merge branch 'js/rebase-recreate-merge'
Hotfixes. * js/rebase-recreate-merge: sequencer: ensure labels that are object IDs are rewritten git-rebase--interactive: fix copy-paste mistake
Diffstat (limited to 't')
-rwxr-xr-xt/t3430-rebase-merges.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t3430-rebase-merges.sh b/t/t3430-rebase-merges.sh
index ce6de6f..2608e54 100755
--- a/t/t3430-rebase-merges.sh
+++ b/t/t3430-rebase-merges.sh
@@ -70,6 +70,7 @@ test_expect_success 'create completely different structure' '
merge -C H second
merge onebranch # Merge the topic branch '\''onebranch'\''
EOF
+ cp script-from-scratch script-from-scratch-orig &&
test_config sequence.editor \""$PWD"/replace-editor.sh\" &&
test_tick &&
git rebase -i -r A &&
@@ -313,4 +314,20 @@ test_expect_success 'A root commit can be a cousin, treat it that way' '
EOF
'
+test_expect_success 'labels that are object IDs are rewritten' '
+ git checkout -b third B &&
+ test_tick &&
+ test_commit I &&
+ third=$(git rev-parse HEAD) &&
+ git checkout -b labels master &&
+ git merge --no-commit third &&
+ test_tick &&
+ git commit -m "Merge commit '\''$third'\'' into labels" &&
+ cp script-from-scratch-orig script-from-scratch &&
+ test_config sequence.editor \""$PWD"/replace-editor.sh\" &&
+ test_tick &&
+ git rebase -i -r A &&
+ ! grep "^label $third$" .git/ORIGINAL-TODO
+'
+
test_done