diff options
author | René Scharfe <l.s.r@web.de> | 2019-08-29 21:06:22 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-09-03 15:10:53 -0700 |
commit | 1577dc0f7c1326ce59e1e97fad8a0b1e8c826203 (patch) | |
tree | 3902021af0fa77ff2a87fd1cbaa1c68a45211c82 /version.c | |
parent | First batch after Git 2.23 (diff) | |
download | tgif-1577dc0f7c1326ce59e1e97fad8a0b1e8c826203.tar.xz |
tree: simplify parse_tree_indirect()
Reduce code duplication by turning parse_tree_indirect() into a wrapper
of repo_peel_to_type(). This avoids a segfault when handling a broken
tag where ->tagged is NULL. The new version also checks the return
value of parse_object() that was ignored by the old one.
Initial-patch-by: Stefan Sperling <stsp@stsp.name>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'version.c')
0 files changed, 0 insertions, 0 deletions