Skip to content

Commit

Permalink
Merge pull request #1245 from stspdotname/local-client-docstrings
Browse files Browse the repository at this point in the history
tweak doc-strings in LocalGitClient for clarity
  • Loading branch information
jelmer authored Dec 17, 2023
2 parents 14e1665 + 0b58b38 commit aa6301c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dulwich/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ def _connect(self, service, path):


class LocalGitClient(GitClient):
"""Git Client that just uses a local Repo."""
"""Git Client that just uses a local on-disk repository."""

def __init__(
self, thin_packs=True, report_activity=None, config: Optional[Config] = None
Expand Down Expand Up @@ -1432,7 +1432,7 @@ def _open_repo(cls, path):
return closing(Repo(path))

def send_pack(self, path, update_refs, generate_pack_data, progress=None):
"""Upload a pack to a remote repository.
"""Upload a pack to a local on-disk repository.
Args:
path: Repository path (as bytestring)
Expand Down Expand Up @@ -1525,7 +1525,7 @@ def fetch_pack(
progress=None,
depth=None,
) -> FetchPackResult:
"""Retrieve a pack from a git smart server.
"""Retrieve a pack from a local on-disk repository.
Args:
path: Remote path to fetch from
Expand Down Expand Up @@ -1560,7 +1560,7 @@ def fetch_pack(
return FetchPackResult(r.get_refs(), symrefs, agent)

def get_refs(self, path):
"""Retrieve the current refs from a git smart server."""
"""Retrieve the current refs from a local on-disk repository."""
with self._open_repo(path) as target:
return target.get_refs()

Expand Down

0 comments on commit aa6301c

Please sign in to comment.