Jelmer Vernooij 16 éve
szülő
commit
04bd6b7d35
1 módosított fájl, 2 hozzáadás és 8 törlés
  1. 2 8
      dulwich/client.py

+ 2 - 8
dulwich/client.py

@@ -62,21 +62,15 @@ class GitClient(object):
 
     """
 
-    def __init__(self, fileno, read, write, thin_packs=None, include_tag=None, 
-                 shallow=None):
+    def __init__(self, fileno, read, write, thin_packs=True, include_tag=True, 
+                 shallow=True):
         self.proto = Protocol(read, write)
         self.fileno = fileno
         self._capabilities = list(CAPABILITIES)
-        if thin_packs is None:
-            thin_packs = True
         if thin_packs:
             self._capabilities.append("thin-pack")
-        if include_tag is None:
-            include_tag = True
         if include_tag:
             self._capabilities.append("include-tag")
-        if shallow is None:
-            shallow = True
         if shallow:
             self._capabilities.append("shallow")