Skip to content

Commit

Permalink
client: Invert logic for thin-packs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Oct 3, 2012
1 parent 496696c commit e98f071
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dulwich/client.py
Expand Up @@ -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


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e98f071

Please sign in to comment.