summaryrefslogtreecommitdiff
path: root/trace.h
diff options
context:
space:
mode:
authorLibravatar Taylor Blau <me@ttaylorr.com>2019-04-09 19:13:17 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-04-10 12:59:39 +0900
commit23c204455bf2198806e8c7b0cd86b20a50a379d0 (patch)
tree53bcb4f59c3793bd98ecbe24206121a3b6561f10 /trace.h
parentt: introduce tests for unexpected object types (diff)
downloadtgif-23c204455bf2198806e8c7b0cd86b20a50a379d0.tar.xz
list-objects.c: handle unexpected non-blob entries
Fix one of the cases described in the previous commit where a tree-entry that is promised to a blob is in fact a non-blob. When 'lookup_blob()' returns NULL, it is because Git has cached the requested object as a non-blob. In this case, prevent a SIGSEGV by 'die()'-ing immediately before attempting to dereference the result. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace.h')
0 files changed, 0 insertions, 0 deletions