author | Junio C Hamano <gitster@pobox.com> | |
Thu, 17 Nov 2011 06:04:13 +0000 (22:04 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 17 Nov 2011 06:05:21 +0000 (22:05 -0800) | ||
commit | 68be2fea50e7a34c0e5f9fdf6adb9040c8df197f | |
tree | f85e2d46ed7d10a13722934e96baa94f591c93b0 | tree | snapshot |
parent | 6f62cd7ab1c47a7ea32ab05cf1292d82c47310e9 | commit | diff |
receive-pack, fetch-pack: reject bogus pack that records objects twice
When receive-pack & fetch-pack are run and store the pack obtained over
the wire to a local repository, they internally run the index-pack command
with the --strict option. Make sure that we reject incoming packfile that
records objects twice to avoid spreading such a damage.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When receive-pack & fetch-pack are run and store the pack obtained over
the wire to a local repository, they internally run the index-pack command
with the --strict option. Make sure that we reject incoming packfile that
records objects twice to avoid spreading such a damage.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c | diff | blob | history | |
object.c | diff | blob | history | |
pack-write.c | diff | blob | history | |
pack.h | diff | blob | history |