|
@@ -1023,7 +1023,10 @@ class TraditionalGitClient(GitClient):
|
|
|
return FetchPackResult(refs, symrefs, agent)
|
|
|
|
|
|
try:
|
|
|
- wants = determine_wants(refs, depth=depth)
|
|
|
+ if depth is not None:
|
|
|
+ wants = determine_wants(refs, depth=depth)
|
|
|
+ else:
|
|
|
+ wants = determine_wants(refs)
|
|
|
except BaseException:
|
|
|
proto.write_pkt_line(None)
|
|
|
raise
|
|
@@ -2042,7 +2045,10 @@ class HttpGitClient(GitClient):
|
|
|
symrefs,
|
|
|
agent,
|
|
|
) = self._negotiate_upload_pack_capabilities(server_capabilities)
|
|
|
- wants = determine_wants(refs, depth=depth)
|
|
|
+ if depth is not None:
|
|
|
+ wants = determine_wants(refs, depth=depth)
|
|
|
+ else:
|
|
|
+ wants = determine_wants(refs)
|
|
|
if wants is not None:
|
|
|
wants = [cid for cid in wants if cid != ZERO_SHA]
|
|
|
if not wants:
|