]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
Don't create a final empty packfile in fast-import.
authorShawn O. Pearce <spearce@spearce.org>
Mon, 15 Jan 2007 11:39:39 +0000 (06:39 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 15 Jan 2007 11:39:39 +0000 (06:39 -0500)
commit3e005baf8542a3116e51c4b0a27b72c7e14d949b
tree3c2d7e72a1fb2d0b4c09ac00c4a5fdaecd3dbf76
parent7bfe6e261378a30980886994dabc0e7e4c9ce3d8
Don't create a final empty packfile in fast-import.

If the last packfile is going to be empty (has 0 objects) then it
shouldn't be kept after the import has terminated, as there is no
point to the packfile.  So rather than hashing it and making the
index file, just delete the packfile.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c