]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-fast-export.c
Merge branch 'jk/clone-post-checkout'
[git.git] / builtin-fast-export.c
index fdf4ae9ebdba7832a0ac736d56a7b564bba41baa..34a419c38e15998e82c9daf5627154d491e1af04 100644 (file)
@@ -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);