summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorLibravatar Matthew DeVore <matvore@google.com>2018-12-05 13:43:46 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-12-06 10:10:13 +0900
commit4cf67869b2ae3df7ab76b03c627f7b72d18d24ce (patch)
treea6e33d75471168a4f47d5237c36517879d40c16e /compat
parentSixth batch for 2.20 (diff)
downloadtgif-4cf67869b2ae3df7ab76b03c627f7b72d18d24ce.tar.xz
list-objects.c: don't segfault for missing cmdline objects
When a command is invoked with both --exclude-promisor-objects, --objects-edge-aggressive, and a missing object on the command line, the rev_info.cmdline array could get a NULL pointer for the value of an 'item' field. Prevent dereferencing of a NULL pointer in that situation. Properly handle --ignore-missing. If it is not passed, die when an object is missing. Otherwise, just silently ignore it. Signed-off-by: Matthew DeVore <matvore@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions