Skip to content
Browse files

client: Invert logic for thin-packs.

  • Loading branch information...
1 parent 496696c commit e98f071751bd77f59967bfa671cd2caebdccc9a2 @jelmer committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 dulwich/client.py
View
6 dulwich/client.py
@@ -75,7 +75,7 @@ def _fileno_can_read(fileno):
return len(select.select([fileno], [], [], 0)[0]) > 0
COMMON_CAPABILITIES = ['ofs-delta', 'side-band-64k']
-FETCH_CAPABILITIES = ['multi_ack', 'multi_ack_detailed'] + COMMON_CAPABILITIES
+FETCH_CAPABILITIES = ['thin-pack', 'multi_ack', 'multi_ack_detailed'] + COMMON_CAPABILITIES
SEND_CAPABILITIES = ['report-status'] + COMMON_CAPABILITIES
@@ -155,8 +155,8 @@ def __init__(self, thin_packs=True, report_activity=None):
self._report_activity = report_activity
self._fetch_capabilities = set(FETCH_CAPABILITIES)
self._send_capabilities = set(SEND_CAPABILITIES)
- if thin_packs:
- self._fetch_capabilities.add('thin-pack')
+ if not thin_packs:
+ self._fetch_capabilities.remove('thin-pack')
def _read_refs(self, proto):
server_capabilities = None

0 comments on commit e98f071

Please sign in to comment.
Something went wrong with that request. Please try again.