log-tree: show_log() should respect the setting of diffopt->line_termination
[gitweb.git] / builtin-rev-list.c
index 2b6691c8e4737a19acf3c57c8d75cbf09da6d939..0dee1734a31308ace74b0b25cc87ffcf4993549b 100644 (file)
@@ -306,12 +306,12 @@ static void mark_edges_uninteresting(struct commit_list *list)
        }
 }
 
-int cmd_rev_list(int argc, const char **argv, char **envp)
+int cmd_rev_list(int argc, const char **argv, const char *prefix)
 {
        struct commit_list *list;
        int i;
 
-       init_revisions(&revs, setup_git_directory());
+       init_revisions(&revs, prefix);
        revs.abbrev = 0;
        revs.commit_format = CMIT_FMT_UNSPECIFIED;
        argc = setup_revisions(argc, argv, &revs, NULL);