summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2015-06-22 14:02:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-22 20:17:10 (GMT)
commit7fa7dc8904882a40107af71a751bad5d1572ba4c (patch)
tree45331936e57f959446e630d91c6689d8d6aff834 /builtin
parent5d97861b9baf3b0596f2a1c343634062aec2df84 (diff)
downloadgit-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 'builtin')
0 files changed, 0 insertions, 0 deletions