diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-01-16 01:15:31 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-01-16 01:15:31 -0500 |
commit | 8455e48476634eeff6fd2cd4f245cadfef14bbc8 (patch) | |
tree | cc1c872ffac6807c1fccd50be15c447bcf6f4d46 /unpack-file.c | |
parent | 09543c96bbe41d312bc002c293a193aa328c839d (diff) | |
download | git-8455e48476634eeff6fd2cd4f245cadfef14bbc8.tar.gz |
Use .keep files in fast-import during processing.
Because fast-import automatically updates all references (heads
and tags) at the end of its run the repository is corrupt unless
the objects are available in the .git/objects/pack directory prior
to the refs being modified. The easiest way to ensure that is true
is to move the packfile and its associated index directly into the
.git/objects/pack directory as soon as we have finished output to it.
But the only safe way to do this is to create the a temporary .keep
file for that pack, so we use the same tricks that index-pack uses
when its being invoked by receive-pack.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'unpack-file.c')
0 files changed, 0 insertions, 0 deletions