about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ui-log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-log.c b/ui-log.c index 2de8017..b5846e4 100644 --- a/ui-log.c +++ b/ui-log.c
@@ -337,16 +337,16 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
337 else if (commit_sort == 2) 337 else if (commit_sort == 2)
338 argv_array_push(&rev_argv, "--topo-order"); 338 argv_array_push(&rev_argv, "--topo-order");
339 339
340 if (path) { 340 argv_array_push(&rev_argv, "--");
341 argv_array_push(&rev_argv, "--"); 341 if (path)
342 argv_array_push(&rev_argv, path); 342 argv_array_push(&rev_argv, path);
343 }
344 343
345 init_revisions(&rev, NULL); 344 init_revisions(&rev, NULL);
346 rev.abbrev = DEFAULT_ABBREV; 345 rev.abbrev = DEFAULT_ABBREV;
347 rev.commit_format = CMIT_FMT_DEFAULT; 346 rev.commit_format = CMIT_FMT_DEFAULT;
348 rev.verbose_header = 1; 347 rev.verbose_header = 1;
349 rev.show_root_diff = 0; 348 rev.show_root_diff = 0;
349 rev.ignore_missing = 1;
350 setup_revisions(rev_argv.argc, rev_argv.argv, &rev, NULL); 350 setup_revisions(rev_argv.argc, rev_argv.argv, &rev, NULL);
351 load_ref_decorations(DECORATE_FULL_REFS); 351 load_ref_decorations(DECORATE_FULL_REFS);
352 rev.show_decorations = 1; 352 rev.show_decorations = 1;