swh.loader.git.dumb module#
- swh.loader.git.dumb.check_protocol(repo_url: str) bool [source]#
Checks if a git repository can be cloned using the dumb protocol.
- Parameters:
repo_url – Base URL of a git repository
- Returns:
Whether the dumb protocol is supported.
- class swh.loader.git.dumb.GitObjectsFetcher(repo_url: str, base_repo: RepoRepresentation)[source]#
Bases:
object
Git objects fetcher using dumb HTTP protocol.
Fetches a set of git objects for a repository according to its archival state by Software Heritage and provides iterators on them.
- Parameters:
repo_url – Base URL of a git repository
base_repo – State of repository archived by Software Heritage