Dulwich.io dulwich / 4977c8f
Support the include-tags capability in GitClient. Jelmer Vernooń≥ 8 days ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
311311 class GitClient(object):
312312 """Git smart server client."""
313313
314 def __init__(self, thin_packs=True, report_activity=None, quiet=False):
314 def __init__(self, thin_packs=True, report_activity=None, quiet=False,
315 include_tags=False):
315316 """Create a new GitClient instance.
316317
317318 Args:
318319 thin_packs: Whether or not thin packs should be retrieved
319320 report_activity: Optional callback for reporting transport
320321 activity.
322 include_tags: send annotated tags when sending the objects they point
323 to
321324 """
322325 self._report_activity = report_activity
323326 self._report_status_parser = None
329332 self._send_capabilities.add(CAPABILITY_QUIET)
330333 if not thin_packs:
331334 self._fetch_capabilities.remove(CAPABILITY_THIN_PACK)
335 if include_tags:
336 self._fetch_capabilities.add(CAPABILITY_INCLUDE_TAG)
332337
333338 def get_url(self, path):
334339 """Retrieves full url to given path.