提交 176d45cb 编写于 作者: J Junio C Hamano

shallow clone: unparse and reparse an unshallowed commit

Otherwise we would not read the real parents from the commit
object.
上级 c6702f4b
......@@ -582,6 +582,7 @@ static void receive_needs(void)
object->flags &= ~CLIENT_SHALLOW;
/* make sure the real parents are parsed */
unregister_shallow(object->sha1);
object->parsed = 0;
parse_commit((struct commit *)object);
parents = ((struct commit *)object)->parents;
while (parents) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册