author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 15 Jan 2007 11:39:39 +0000 (06:39 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 15 Jan 2007 11:39:39 +0000 (06:39 -0500) | ||
commit | 3e005baf8542a3116e51c4b0a27b72c7e14d949b | |
tree | 3c2d7e72a1fb2d0b4c09ac00c4a5fdaecd3dbf76 | tree | snapshot |
parent | 7bfe6e261378a30980886994dabc0e7e4c9ce3d8 | commit | diff |
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>
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 | diff | blob | history |