Merge branch 'pb/stash-refuse-to-kill'
[gitweb.git] / t / t3404-rebase-interactive.sh
index 0d3c57340ebf1de3f8aff05c15e05df81b173b41..d6b414377306de88e8e294dd5eaadfcb3a234ec2 100755 (executable)
@@ -939,4 +939,15 @@ test_expect_success 'rebase -i respects core.commentchar' '
        test B = $(git cat-file commit HEAD^ | sed -ne \$p)
 '
 
+test_expect_success 'rebase -i, with <onto> and <upstream> specified as :/quuxery' '
+       test_when_finished "git branch -D torebase" &&
+       git checkout -b torebase branch1 &&
+       upstream=$(git rev-parse ":/J") &&
+       onto=$(git rev-parse ":/A") &&
+       git rebase --onto $onto $upstream &&
+       git reset --hard branch1 &&
+       git rebase --onto ":/A" ":/J" &&
+       git checkout branch1
+'
+
 test_done