diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-11-16 22:04:13 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-11-16 22:05:21 -0800 |
commit | 68be2fea50e7a34c0e5f9fdf6adb9040c8df197f (patch) | |
tree | f85e2d46ed7d10a13722934e96baa94f591c93b0 /pack.h | |
parent | 6f62cd7ab1c47a7ea32ab05cf1292d82c47310e9 (diff) | |
download | git-68be2fea50e7a34c0e5f9fdf6adb9040c8df197f.tar.gz |
receive-pack, fetch-pack: reject bogus pack that records objects twicejc/index-pack-reject-dups
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>
Diffstat (limited to 'pack.h')
-rw-r--r-- | pack.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -37,7 +37,8 @@ struct pack_header { struct pack_idx_option { unsigned flags; /* flag bits */ -#define WRITE_IDX_VERIFY 01 +#define WRITE_IDX_VERIFY 01 /* verify only, do not write the idx file */ +#define WRITE_IDX_STRICT 02 uint32_t version; uint32_t off32_limit; |