]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t6006-rev-list-format.sh
t6006: do not write to /tmp
[git.git] / t / t6006-rev-list-format.sh
index b0047d3c6b593795561ce908ab8e10ff574d3dbc..a49b7c5722e6cb675f771c31e4eec87262388548 100755 (executable)
@@ -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 >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