mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
pack-objects: no delta possible with only one object in the list
... so don't even try in that case, and save another useless line of progress display. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
ed1902ef5c
commit
2f8b89472c
|
@ -1714,7 +1714,7 @@ static void prepare_pack(int window, int depth)
|
|||
delta_list[n++] = entry;
|
||||
}
|
||||
|
||||
if (nr_deltas) {
|
||||
if (nr_deltas && n > 1) {
|
||||
unsigned nr_done = 0;
|
||||
if (progress)
|
||||
start_progress(&progress_state, "Deltifying objects",
|
||||
|
|
Loading…
Reference in a new issue