cmd_fetch_pack(): return early if finish_connect() fails
[gitweb.git] / builtin / prune.c
index a9e2241a0260fd93717c5c28fcc4056f9dc729ed..9a03d24dadaaba8bc1fc0c778dbfe33b1651607e 100644 (file)
@@ -25,7 +25,8 @@ static int prune_tmp_object(const char *path, const char *filename)
                return error("Could not stat '%s'", fullpath);
        if (st.st_mtime > expire)
                return 0;
-       printf("Removing stale temporary file %s\n", fullpath);
+       if (show_only || verbose)
+               printf("Removing stale temporary file %s\n", fullpath);
        if (!show_only)
                unlink_or_warn(fullpath);
        return 0;