Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/git/loader.py
Show First 20 Lines • Show All 246 Lines • ▼ Show 20 Lines | ) -> FetchPackReturn: | ||||
pack_size = pack_buffer.tell() | pack_size = pack_buffer.tell() | ||||
pack_buffer.seek(0) | pack_buffer.seek(0) | ||||
logger.debug("fetched_pack_size=%s", pack_size) | logger.debug("fetched_pack_size=%s", pack_size) | ||||
# check if repository only supports git dumb transfer protocol, | # check if repository only supports git dumb transfer protocol, | ||||
# fetched pack file will be empty in that case as dulwich do | # fetched pack file will be empty in that case as dulwich do | ||||
# not support it and do not fetch any refs | # not support it and do not fetch any refs | ||||
self.dumb = transport_url.startswith("http") and client.dumb | self.dumb = transport_url.startswith("http") and getattr(client, "dumb", False) | ||||
return FetchPackReturn( | return FetchPackReturn( | ||||
remote_refs=utils.filter_refs(remote_refs), | remote_refs=utils.filter_refs(remote_refs), | ||||
symbolic_refs=utils.filter_refs(symbolic_refs), | symbolic_refs=utils.filter_refs(symbolic_refs), | ||||
pack_buffer=pack_buffer, | pack_buffer=pack_buffer, | ||||
pack_size=pack_size, | pack_size=pack_size, | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 312 Lines • Show Last 20 Lines |