diff options
author | Jeff King <peff@peff.net> | 2012-02-06 03:13:42 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-06 10:00:51 -0800 |
commit | fb630e048c6efabe4d46b1b125fe7348062d38e6 (patch) | |
tree | 1034df77904ed92fd9d0049f9eeec6de08324c2c /t/t3004-ls-files-basic.sh | |
parent | tag: fix output of "tag -n" when errors occur (diff) | |
download | tgif-fb630e048c6efabe4d46b1b125fe7348062d38e6.tar.xz |
tag: die when listing missing or corrupt objects
We don't usually bother looking at tagged objects at all
when listing. However, if "-n" is specified, we open the
objects to read the annotations of the tags. If we fail to
read an object, or if the object has zero length, we simply
silently return.
The first case is an indication of a broken or corrupt repo,
and we should notify the user of the error.
The second case is OK to silently ignore; however, the
existing code leaked the buffer returned by read_sha1_file.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3004-ls-files-basic.sh')
0 files changed, 0 insertions, 0 deletions