]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4202-log.sh
fix segfault with git log -c --follow
[thirdparty/git.git] / t / t4202-log.sh
index fa686b887d6b49ab8e6d30893501744645f72a91..d9e587a96ed095cf29b393e380e1697d753a367a 100755 (executable)
@@ -542,6 +542,20 @@ test_expect_success 'show added path under "--follow -M"' '
        )
 '
 
+test_expect_success 'git log -c --follow' '
+       test_create_repo follow-c &&
+       (
+               cd follow-c &&
+               test_commit initial file original &&
+               git rm file &&
+               test_commit rename file2 original &&
+               git reset --hard initial &&
+               test_commit modify file foo &&
+               git merge -m merge rename &&
+               git log -c --follow file2
+       )
+'
+
 cat >expect <<\EOF
 *   commit COMMIT_OBJECT_NAME
 |\  Merge: MERGE_PARENTS