]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/git.py
git: use git's int parsing with pack.packSizeLimit config
[bup.git] / lib / bup / git.py
index f6ae9e3765472f0e3e85c0764c72c384b49c9ff0..5144e70dd8bf8c3993d5bcb590d7294614f3fc74 100644 (file)
@@ -718,9 +718,8 @@ class PackWriter:
         self.on_pack_finish = on_pack_finish
         if not max_pack_size:
             max_pack_size = git_config_get(b'pack.packSizeLimit',
-                                           repo_dir=self.repo_dir)
-            if max_pack_size is not None:
-                max_pack_size = parse_num(max_pack_size)
+                                           repo_dir=self.repo_dir,
+                                           opttype='int')
             if not max_pack_size:
                 # larger packs slow down pruning
                 max_pack_size = 1000 * 1000 * 1000