Merge branch 'rs/ipv6-ssh-url'
[gitweb.git] / t / t3404-rebase-interactive.sh
index 4983bd77753307a7f93963b02534f36ae6fc71bb..025c1c610efee9562343b34a9c815f34f51ed9ac 100755 (executable)
@@ -247,6 +247,7 @@ test_expect_success '-p handles "no changes" gracefully' '
 '
 
 test_expect_failure 'exchange two commits with -p' '
+       git checkout H &&
        FAKE_LINES="2 1" git rebase -i -p HEAD~2 &&
        test H = $(git cat-file commit HEAD^ | sed -ne \$p) &&
        test G = $(git cat-file commit HEAD | sed -ne \$p)