diff options
author | yuangli <yuangli@mathworks.com> | 2022-08-11 09:38:21 +0100 |
---|---|---|
committer | yuangli <yuangli@mathworks.com> | 2022-08-11 09:38:21 +0100 |
commit | 8b521f018b734f58db2b9aec184e0f96422f140e (patch) | |
tree | 967b7e0e30de827ceba74a8ef9b707723d7a1c59 | |
parent | 49e641be8c5549f6f5731d6d72e9e6902e71d0e1 (diff) | |
download | libgit2-8b521f018b734f58db2b9aec184e0f96422f140e.tar.gz |
document unshallow behaviour in fetch.c
-rw-r--r-- | src/libgit2/fetch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libgit2/fetch.c b/src/libgit2/fetch.c index a015cfbd3..3216b261c 100644 --- a/src/libgit2/fetch.c +++ b/src/libgit2/fetch.c @@ -60,7 +60,9 @@ static int mark_local(git_remote *remote) return -1; 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)) head->local = 1; else |