aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-07-03 15:30:59 -0700
committerJunio C Hamano <gitster@pobox.com>2013-07-03 15:30:59 -0700
commit318e758f327c486a606ece48c5dfb5fa6e5d39d5 (patch)
tree5f127b8b570a11cf61311f99b24769a21c3b7ef5 /t
parentb3bf469bf8d4cff6fbfef7db1c6f74b63906a317 (diff)
parent46ec510ac088ac2669e617a4c8c35e6218dabecc (diff)
downloadgit-318e758f327c486a606ece48c5dfb5fa6e5d39d5.tar.gz
git-318e758f327c486a606ece48c5dfb5fa6e5d39d5.tar.xz
Merge branch 'cb/log-follow-with-combined' into maint
"git log -c --follow $path" segfaulted upon hitting the commit that renamed the $path being followed. * cb/log-follow-with-combined: fix segfault with git log -c --follow
Diffstat (limited to 't')
-rwxr-xr-xt/t4202-log.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t4202-log.sh b/t/t4202-log.sh
index 9243a9799..cb03d2876 100755
--- a/t/t4202-log.sh
+++ b/t/t4202-log.sh
@@ -530,6 +530,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