cherry-pick: demonstrate a segmentation fault
[gitweb.git] / t / t3501-revert-cherry-pick.sh
index 51f3bbb8af446dd24a835a8593475b59a73f6d1f..5bef564ff15d5e7c8e35cf1d085191faf319e84c 100755 (executable)
@@ -141,4 +141,16 @@ test_expect_success 'cherry-pick "-" works with arguments' '
        test_cmp expect actual
 '
 
+test_expect_failure 'cherry-pick works with dirty renamed file' '
+       test_commit to-rename &&
+       git checkout -b unrelated &&
+       test_commit unrelated &&
+       git checkout @{-1} &&
+       git mv to-rename.t renamed &&
+       test_tick &&
+       git commit -m renamed &&
+       echo modified >renamed &&
+       git cherry-pick refs/heads/unrelated
+'
+
 test_done