Make git-prune submodule aware (and fix a SEGFAULT in the process)
[gitweb.git] / log-tree.c
index c679324c073b50a083daec568e4832e74a8bf4f3..4bef909144b2b5b402ee7cf0d959a0995c00ff0e 100644 (file)
@@ -244,10 +244,10 @@ void show_log(struct rev_info *opt, const char *sep)
                      stdout);
                if (opt->commit_format != CMIT_FMT_ONELINE)
                        fputs("commit ", stdout);
-               if (opt->left_right) {
-                       if (commit->object.flags & BOUNDARY)
-                               putchar('-');
-                       else if (commit->object.flags & SYMMETRIC_LEFT)
+               if (commit->object.flags & BOUNDARY)
+                       putchar('-');
+               else if (opt->left_right) {
+                       if (commit->object.flags & SYMMETRIC_LEFT)
                                putchar('<');
                        else
                                putchar('>');