The fifth batch for 2.18
[gitweb.git] / builtin / fast-export.c
index a15898d64177b380ea021e3bc63fb91446bc02b3..530df12f05be0e3331347d0a76306d0caa394744 100644 (file)
@@ -651,8 +651,11 @@ static void handle_tail(struct object_array *commits, struct rev_info *revs,
        struct commit *commit;
        while (commits->nr) {
                commit = (struct commit *)object_array_pop(commits);
-               if (has_unshown_parent(commit))
+               if (has_unshown_parent(commit)) {
+                       /* Queue again, to be handled later */
+                       add_object_array(&commit->object, NULL, commits);
                        return;
+               }
                handle_commit(commit, revs, paths_of_changed_objects);
        }
 }