Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

client: Invert logic for thin-packs.

Changeset e98f071751bd

Parent 496696c65289

by Jelmer Vernooij

Changes to one file · Browse files at e98f071751bd Showing diff from parent 496696c65289 Diff from another changeset...

Change 1 of 2 Show Entire File dulwich/​client.py Stacked
 
75
76
77
78
 
79
80
81
 
155
156
157
158
159
 
 
160
161
162
 
75
76
77
 
78
79
80
81
 
155
156
157
 
 
158
159
160
161
162
@@ -75,7 +75,7 @@
  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 @@
  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