X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-prune-packed.c;h=23faf3129fb65ec5592c5021d661498143d4f608;hb=7ee906694c28ab7281492d5114d2afabd964bd41;hp=f4287dad10da4f2200f5df8ad2a0667e24b5ecc6;hpb=4d4fcc5451d9d653bebcc8afa18543cb426abeed;p=git.git diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c index f4287dad1..23faf3129 100644 --- a/builtin-prune-packed.c +++ b/builtin-prune-packed.c @@ -15,8 +15,6 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len, int opts) struct dirent *de; char hex[40]; - display_progress(progress, i + 1); - sprintf(hex, "%02x", i); while ((de = readdir(dir)) != NULL) { unsigned char sha1[20]; @@ -32,6 +30,7 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len, int opts) printf("rm -f %s\n", pathname); else if (unlink(pathname) < 0) error("unable to unlink %s", pathname); + display_progress(progress, i + 1); } pathname[len] = 0; rmdir(pathname);