Merge branch 'rs/pretty-safety'
[gitweb.git] / t / t3404-rebase-interactive.sh
index 907c7f9f6bccb0ddcf4d9862467a938369a07519..74a7eb30f84baf2f381c2af7a6c21225bfcd2b08 100755 (executable)
@@ -184,6 +184,12 @@ test_expect_success 'retain authorship when squashing' '
        git show HEAD | grep "^Author: Twerp Snog"
 '
 
+test_expect_success '-p handles "no changes" gracefully' '
+       HEAD=$(git rev-parse HEAD) &&
+       git rebase -i -p HEAD^ &&
+       test $HEAD = $(git rev-parse HEAD)
+'
+
 test_expect_success 'preserve merges with -p' '
        git checkout -b to-be-preserved master^ &&
        : > unrelated-file &&