fast-import: checkpoint: dump branches/tags/marks even if object_count==0
[gitweb.git] / fast-import.c
index a959161b4631e134602aa9b5502105ee5c5bcfb8..365d3191aa1abfb42b4d0da6973612126cc74f3b 100644 (file)
@@ -3188,10 +3188,10 @@ static void checkpoint(void)
        checkpoint_requested = 0;
        if (object_count) {
                cycle_packfile();
-               dump_branches();
-               dump_tags();
-               dump_marks();
        }
+       dump_branches();
+       dump_tags();
+       dump_marks();
 }
 
 static void parse_checkpoint(void)