diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2015-06-22 14:02:57 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-22 20:17:10 (GMT) |
commit | 7fa7dc8904882a40107af71a751bad5d1572ba4c (patch) | |
tree | 45331936e57f959446e630d91c6689d8d6aff834 /gitweb | |
parent | 5d97861b9baf3b0596f2a1c343634062aec2df84 (diff) | |
download | git-7fa7dc8904882a40107af71a751bad5d1572ba4c.zip git-7fa7dc8904882a40107af71a751bad5d1572ba4c.tar.gz git-7fa7dc8904882a40107af71a751bad5d1572ba4c.tar.bz2 |
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 'gitweb')
0 files changed, 0 insertions, 0 deletions