aboutsummaryrefslogtreecommitdiff
path: root/upload-pack.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-10-24 04:54:53 -0400
committerJunio C Hamano <gitster@pobox.com>2013-10-24 15:43:51 -0700
commit3c62183929080c17299d5b404eb092e3d53c161a (patch)
tree6a0a3c233b5a3c7622023b652326953b72aff03c /upload-pack.c
parent367068e0dd1b7d6b5b4029749b326c6bad172498 (diff)
downloadgit-3c62183929080c17299d5b404eb092e3d53c161a.tar.gz
git-3c62183929080c17299d5b404eb092e3d53c161a.tar.xz
checkout: do not die when leaving broken detached HEAD
If we move away from a detached HEAD that has broken or corrupted commits, we might die in two places: 1. Printing the "old HEAD was..." message. 2. Printing the list of orphaned commits. In both cases, we ignore the return value of parse_commit and feed the resulting commit to the pretty-print machinery, which will die() upon failing to read the commit object itself. Since both cases are ancillary to the real operation being performed, let's be more robust and keep going. This lets users more easily checkout away from broken history. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'upload-pack.c')
0 files changed, 0 insertions, 0 deletions