gitweb: Convert project name to UTF-8
[gitweb.git] / log-tree.c
index f043ad3723eef60f4e3d7a7a95ba19c89d0bcebf..d8ca36bbdd92f77e7d955c86bb11823a21501fa6 100644 (file)
@@ -224,8 +224,14 @@ void show_log(struct rev_info *opt, const char *sep)
                printf("%s",
                       diff_get_color(opt->diffopt.color_diff, DIFF_RESET));
                putchar(opt->commit_format == CMIT_FMT_ONELINE ? ' ' : '\n');
-               if (opt->reflog_info)
-                       show_reflog_message(opt->reflog_info);
+               if (opt->reflog_info) {
+                       show_reflog_message(opt->reflog_info,
+                                   opt->commit_format == CMIT_FMT_ONELINE);;
+                       if (opt->commit_format == CMIT_FMT_ONELINE) {
+                               printf("%s", sep);
+                               return;
+                       }
+               }
        }
 
        /*