add: error appropriately on repository with no commits
[gitweb.git] / builtin / rev-list.c
index 14ef659c12a49e25bfc8b8143a7fb5b4138d1787..5b5b6dbb1c9b6f9893f3d0420c99655eb19501a8 100644 (file)
@@ -546,7 +546,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
        if (prepare_revision_walk(&revs))
                die("revision walk setup failed");
        if (revs.tree_objects)
-               mark_edges_uninteresting(&revs, show_edge);
+               mark_edges_uninteresting(&revs, show_edge, 0);
 
        if (bisect_list) {
                int reaches, all;