summaryrefslogtreecommitdiff
path: root/t/t9300-fast-import.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-04-15 01:57:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-15 01:57:46 (GMT)
commitf55f97cb3307f49e6b15d9f0145b6d3f00b22ff7 (patch)
tree0460b6a32f3f3cf4877f9dd681cd971e644a80a2 /t/t9300-fast-import.sh
parent183ecc3e49dee55de349e2f0759aa4894b3623c7 (diff)
parentb70904306fc30857fa3638d2bce7ae0ad1251e23 (diff)
downloadgit-f55f97cb3307f49e6b15d9f0145b6d3f00b22ff7.zip
git-f55f97cb3307f49e6b15d9f0145b6d3f00b22ff7.tar.gz
git-f55f97cb3307f49e6b15d9f0145b6d3f00b22ff7.tar.bz2
Merge branch 'jk/getwholeline-getdelim-empty' into maint
strbuf_getwholeline() did not NUL-terminate the buffer on certain corner cases in its error codepath. * jk/getwholeline-getdelim-empty: strbuf_getwholeline: NUL-terminate getdelim buffer on error
Diffstat (limited to 't/t9300-fast-import.sh')
-rwxr-xr-xt/t9300-fast-import.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh
index 4c5f3c9..25bb60b 100755
--- a/t/t9300-fast-import.sh
+++ b/t/t9300-fast-import.sh
@@ -55,6 +55,10 @@ test_expect_success 'empty stream succeeds' '
git fast-import </dev/null
'
+test_expect_success 'truncated stream complains' '
+ echo "tag foo" | test_must_fail git fast-import
+'
+
test_expect_success 'A: create pack from stdin' '
test_tick &&
cat >input <<-INPUT_END &&