diff options
author | Glen Choo <chooglen@google.com> | 2022-03-01 16:36:13 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-01 23:27:09 -0800 |
commit | 8d2eaf649abd28baa083a723d1e041b26d2be83e (patch) | |
tree | ae72cb98b4b15b4b19187a5d96aab76d3bcf9258 /t/t5529-push-errors.sh | |
parent | Git 2.35.1 (diff) | |
download | tgif-8d2eaf649abd28baa083a723d1e041b26d2be83e.tar.xz |
checkout, clone: die if tree cannot be parsed
When a tree oid is invalid, parse_tree_indirect() can return NULL. Check
for NULL instead of proceeding as though it were a valid pointer and
segfaulting.
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5529-push-errors.sh')
0 files changed, 0 insertions, 0 deletions