Commit 8b521f01 by yuangli

document unshallow behaviour in fetch.c

parent 49e641be
...@@ -60,7 +60,9 @@ static int mark_local(git_remote *remote) ...@@ -60,7 +60,9 @@ static int mark_local(git_remote *remote)
return -1; return -1;
git_vector_foreach(&remote->refs, i, head) { git_vector_foreach(&remote->refs, i, head) {
/* If we have the object, mark it so we don't ask for it */ /* If we have the object, mark it so we don't ask for it.
However if we are unshallowing, we need to ask for it
even though the head exists locally. */
if (remote->nego.depth != INT_MAX && git_odb_exists(odb, &head->oid)) if (remote->nego.depth != INT_MAX && git_odb_exists(odb, &head->oid))
head->local = 1; head->local = 1;
else else
......
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