X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-fast-export.c;h=6731713223d4df24614417cc4285cbee793151d3;hb=476cc72;hp=f171ee4a2beb3cfd6eec203f422799249508ee13;hpb=34ab57df974ad74cc93550bfac2f90d203837a17;p=git.git diff --git a/builtin-fast-export.c b/builtin-fast-export.c index f171ee4a2..673171322 100644 --- a/builtin-fast-export.c +++ b/builtin-fast-export.c @@ -221,7 +221,8 @@ static void handle_commit(struct commit *commit, struct rev_info *rev) if (message) message += 2; - if (commit->parents) { + if (commit->parents && + get_object_mark(&commit->parents->item->object) != 0) { parse_commit(commit->parents->item); diff_tree_sha1(commit->parents->item->tree->object.sha1, commit->tree->object.sha1, "", &rev->diffopt);