Merge branch 'wk/man-deny-current-branch-is-default-these-days'
[gitweb.git] / builtin / fast-export.c
index 2547e6cb52d8301568e6e1ea71c9e403a82f13a0..77dffd1ce3a5f809a81793f67b9297a555bab1fa 100644 (file)
@@ -526,10 +526,14 @@ static void get_tags_and_duplicates(struct rev_cmdline_info *info,
                                typename(e->item->type));
                        continue;
                }
-               if (commit->util)
-                       /* more than one name for the same object */
+
+               /*
+                * This ref will not be updated through a commit, lets make
+                * sure it gets properly updated eventually.
+                */
+               if (commit->util || commit->object.flags & SHOWN)
                        string_list_append(extra_refs, full_name)->util = commit;
-               else
+               if (!commit->util)
                        commit->util = full_name;
        }
 }