summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-04-10 05:38:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-04-10 05:38:53 (GMT)
commit408dee5222fd732ac8d59d4d95ee47f5662150d2 (patch)
tree9ebe7c427b42940b7c770cfe0d782692ace523da /t
parentdaaf2e8892cf3b652454c48ffd332e3c5b446b92 (diff)
parent1fb5fdd25f018480b48f6a74f06bad7e04866440 (diff)
downloadgit-408dee5222fd732ac8d59d4d95ee47f5662150d2.zip
git-408dee5222fd732ac8d59d4d95ee47f5662150d2.tar.gz
git-408dee5222fd732ac8d59d4d95ee47f5662150d2.tar.bz2
Merge branch 'ef/maint-empty-commit-log' into maint
* ef/maint-empty-commit-log: rev-list: fix --pretty=oneline with empty message
Diffstat (limited to 't')
-rwxr-xr-xt/t6006-rev-list-format.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t6006-rev-list-format.sh b/t/t6006-rev-list-format.sh
index b0047d3..d24ca5c 100755
--- a/t/t6006-rev-list-format.sh
+++ b/t/t6006-rev-list-format.sh
@@ -209,4 +209,13 @@ test_expect_success '%gd shortens ref name' '
test_cmp expect.gd-short actual.gd-short
'
+test_expect_success 'oneline with empty message' '
+ git commit -m "dummy" --allow-empty &&
+ git commit -m "dummy" --allow-empty &&
+ git filter-branch --msg-filter "sed -e s/dummy//" HEAD^^.. &&
+ git rev-list --oneline HEAD > /tmp/test.txt &&
+ test $(git rev-list --oneline HEAD | wc -l) -eq 5 &&
+ test $(git rev-list --oneline --graph HEAD | wc -l) -eq 5
+'
+
test_done