cat-file: use a single strbuf for all output
[gitweb.git] / git.c
diff --git a/git.c b/git.c
index 3fded745195a603d15da399823e060bb75fb26ef..fc7d15d549e49113fba73ee98161fafd3fd10a56 100644 (file)
--- a/git.c
+++ b/git.c
@@ -414,7 +414,10 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv)
 
        trace_argv_printf(argv, "trace: built-in: git");
 
+       validate_cache_entries(&the_index);
        status = p->fn(argc, argv, prefix);
+       validate_cache_entries(&the_index);
+
        if (status)
                return status;