提交 2f8b8947 编写于 作者: N Nicolas Pitre 提交者: Shawn O. Pearce

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: NNicolas Pitre <nico@cam.org>
Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
上级 ed1902ef
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册