general improvements
[gitweb.git] / builtin / commit-graph.c
index 64eccde314e57e76dac091a3da0347a4474c23ac..57863619b71dc9d33ff864b2ce39c6e3a7d6559b 100644 (file)
@@ -213,8 +213,10 @@ static int graph_write(int argc, const char **argv)
 
                if (opts.stdin_packs)
                        pack_indexes = &lines;
-               if (opts.stdin_commits)
+               if (opts.stdin_commits) {
                        commit_hex = &lines;
+                       flags |= COMMIT_GRAPH_WRITE_CHECK_OIDS;
+               }
 
                UNLEAK(buf);
        }