Sync with 1.7.11.4
[gitweb.git] / t / t3404-rebase-interactive.sh
index 8078db6856ba4428e9d6b13f5e02076da7963b09..3f75d328de8ee08e0d27b3eb589d9c247182d435 100755 (executable)
@@ -903,4 +903,12 @@ test_expect_success 'rebase -i --root temporary sentinel commit' '
        git rebase --abort
 '
 
+test_expect_success 'rebase -i --root fixup root commit' '
+       git checkout B &&
+       FAKE_LINES="1 fixup 2" git rebase -i --root &&
+       test A = $(git cat-file commit HEAD | sed -ne \$p) &&
+       test B = $(git show HEAD:file1) &&
+       test 0 = $(git cat-file commit HEAD | grep -c ^parent\ )
+'
+
 test_done