diff options
author | lmcglash <lmcglash@mathworks.com> | 2023-03-10 09:30:35 +0000 |
---|---|---|
committer | lmcglash <lmcglash@mathworks.com> | 2023-03-10 09:30:35 +0000 |
commit | e3bf6db55c5ca9e22ab08ebe3170252c8af775d7 (patch) | |
tree | 5af6b34cbcc74c3192995a1c25080a9b4b811dc3 /src/libgit2/transports | |
parent | d935773743f8f0ed50027bfe3b66133174610cc9 (diff) | |
parent | 79ed94e0f86daae2d839f89789952f0e99eef32a (diff) | |
download | libgit2-e3bf6db55c5ca9e22ab08ebe3170252c8af775d7.tar.gz |
Merge branch 'shallow-clone-network' of https://github.com/mathworks/libgit2 into shallow-clone-network
Diffstat (limited to 'src/libgit2/transports')
-rw-r--r-- | src/libgit2/transports/smart_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/transports/smart_protocol.c b/src/libgit2/transports/smart_protocol.c index 2ec390101..c37c3cc8d 100644 --- a/src/libgit2/transports/smart_protocol.c +++ b/src/libgit2/transports/smart_protocol.c @@ -359,7 +359,7 @@ static int cap_not_sup_err(const char *cap_name) /* Disables server capabilities we're not interested in */ static int setup_caps(transport_smart_caps *caps, const git_fetch_negotiation *wants) { - if (wants->depth) { + if (wants->depth > 0) { if (!caps->shallow) return cap_not_sup_err(GIT_CAP_SHALLOW); } else { |