git/serve: don't show progress when not interactive

this prevents console spam
This commit is contained in:
Ori Bernstein 2021-10-24 01:36:46 +00:00
parent 5b5f69513a
commit a7f6b58d0d

View file

@ -1448,7 +1448,8 @@ pickdeltas(Meta **meta, int nmeta)
pct = 0;
dprint(1, "picking deltas\n");
fprint(2, "deltifying %d objects: 0%%", nmeta);
if(interactive)
fprint(2, "deltifying %d objects: 0%%", nmeta);
qsort(meta, nmeta, sizeof(Meta*), deltaordercmp);
for(i = 0; i < nmeta; i++){
m = meta[i];