ssh-upload: prevent buffer overrun
[gitweb.git] / builtin-prune.c
index 00a53b36479a25a51734fa359ebf2f649795437b..b469c43bc55440d982005b81252ebfd711faa074 100644 (file)
@@ -253,6 +253,8 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
                usage(prune_usage);
        }
 
+       save_commit_buffer = 0;
+
        /*
         * Set up revision parsing, and mark us as being interested
         * in all object types, not just commits.