summaryrefslogtreecommitdiff
path: root/reflog-walk.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-11-17 06:04:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-11-17 06:06:08 (GMT)
commitf63c79dbc8c5670533557d311ed0e81fcfc9fe3a (patch)
tree23bbcdba48b0eb9efa8212c47ffff5bfb041f42f /reflog-walk.h
parent632052641517de1a965c1f045b97d2eaa541b2e9 (diff)
downloadgit-f63c79dbc8c5670533557d311ed0e81fcfc9fe3a.zip
git-f63c79dbc8c5670533557d311ed0e81fcfc9fe3a.tar.gz
git-f63c79dbc8c5670533557d311ed0e81fcfc9fe3a.tar.bz2
pack-object: tolerate broken packs that have duplicated objects
When --reuse-delta is in effect (which is the default), and an existing pack in the repository has the same object registered twice (e.g. one copy in a non-delta format and the other copy in a delta against some other object), an attempt to repack the repository can result in a cyclic delta dependency, causing write_one() function to infinitely recurse into itself. Detect such a case and break the loopy dependency by writing out an object that is involved in such a loop in the non-delta format. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reflog-walk.h')
0 files changed, 0 insertions, 0 deletions