瀏覽代碼

Support the looseCompression and compression settings.

Jelmer Vernooij 5 年之前
父節點
當前提交
457858d8c5
共有 2 個文件被更改,包括 1 次插入10 次删除
  1. 0 4
      NEWS
  2. 1 6
      dulwich/object_store.py

+ 0 - 4
NEWS

@@ -22,10 +22,6 @@
    loose objects through the "core.looseCompression" and
    "core.compression" settings. (Jelmer Vernooij)
 
- * Support tweaking the compression level for
-   pack objects through the "core.packCompression" and
-   "core.compression" settings. (Jelmer Vernooij)
-
  * Add a "dulwich.contrib.diffstat" module.
    (Kevin Hendricks)
 

+ 1 - 6
dulwich/object_store.py

@@ -551,12 +551,7 @@ class DiskObjectStore(PackBasedObjectStore):
                 (b'core', ), b'looseCompression').decode())
         except KeyError:
             loose_compression_level = default_compression_level
-        try:
-            pack_compression_level = int(config.get(
-                (b'core', ), 'packCompression').decode())
-        except KeyError:
-            pack_compression_level = default_compression_level
-        return cls(path, loose_compression_level, pack_compression_level)
+        return cls(path, loose_compression_level)
 
     @property
     def alternates(self):