Commit 0740382c by Vicent Marti Committed by Carlos Martín Nieto

merge-base: Do not read parents from the root

parent 5b6af2cc
......@@ -318,7 +318,7 @@ static void clear_commit_marks_1(git_commit_list **plist,
git_commit_list_insert(p, plist);
}
commit = commit->parents[0];
commit = commit->out_degree ? commit->parents[0] : NULL;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment