summaryrefslogtreecommitdiff
path: root/delta.h
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2017-07-01 20:31:08 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-07-03 10:01:57 -0700
commit9308b7f3ca9bbe7e76b16c832617a8c6aea5ade3 (patch)
tree600c37ecabfa3871dafdb87914f23e89184b0f78 /delta.h
parentt3210: add some tests of bogus packed-refs file contents (diff)
downloadtgif-9308b7f3ca9bbe7e76b16c832617a8c6aea5ade3.tar.xz
read_packed_refs(): die if `packed-refs` contains bogus data
The old code ignored any lines that it didn't understand, including unterminated lines. This is dangerous. Instead, `die()` if the `packed-refs` file contains any unterminated lines or lines that we don't know how to handle. This fixes the tests added in the last commit. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'delta.h')
0 files changed, 0 insertions, 0 deletions