summaryrefslogtreecommitdiff
path: root/builtin/notes.c
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2015-06-22 16:02:57 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-06-22 13:17:10 -0700
commit7fa7dc8904882a40107af71a751bad5d1572ba4c (patch)
tree45331936e57f959446e630d91c6689d8d6aff834 /builtin/notes.c
parentdelete_refs(): make error message more generic (diff)
downloadtgif-7fa7dc8904882a40107af71a751bad5d1572ba4c.tar.xz
delete_refs(): bail early if the packed-refs file cannot be rewritten
If we fail to delete the doomed references from the packed-refs file, then it is unsafe to delete their loose references, because doing so might expose a value from the packed-refs file that is obsolete and perhaps even points at an object that has been garbage collected. So if repack_without_refs() fails, emit a more explicit error message and bail. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/notes.c')
0 files changed, 0 insertions, 0 deletions