zipseg limit to 1.9G instead of 2G
This commit is contained in:
+1
-1
@@ -4,5 +4,5 @@
|
||||
"zipper": "7z",
|
||||
"compression": 0,
|
||||
"Max7zInst": 0,
|
||||
"zipsegLimit": "2G"
|
||||
"zipsegLimit": "1.9G"
|
||||
}
|
||||
+2
-2
@@ -57,7 +57,7 @@ DEFAULT_CONFIG = {
|
||||
"compressionMethod": "LZMA2", # Compression method: LZMA2 (multi-threaded), PPMd (single-threaded), BZip2, Deflate
|
||||
"dailyFormat": "daily_YYMMDD",
|
||||
"Max7zInst": 0, # Maximum concurrent 7z instances (0 = auto-calculate)
|
||||
"zipsegLimit": "2G", # Max bytes per 7z segment (e.g. "2G", "2GB"); 0 or omit = no segmenting
|
||||
"zipsegLimit": "1.9G", # Max bytes per 7z segment (e.g. "1.9G"); keep under Git LFS 2GB limit
|
||||
}
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@ def _parse_zipseg_limit(value: str | int | float | None) -> int | None:
|
||||
|
||||
ZIPSEG_LIMIT_BYTES: int | None = None
|
||||
if ZIPPER_TYPE == "7z":
|
||||
raw = CONFIG.get("zipsegLimit", "2G")
|
||||
raw = CONFIG.get("zipsegLimit", "1.9G")
|
||||
ZIPSEG_LIMIT_BYTES = _parse_zipseg_limit(raw)
|
||||
if ZIPSEG_LIMIT_BYTES is not None and ZIPSEG_LIMIT_BYTES < 100 * 1024 * 1024:
|
||||
ZIPSEG_LIMIT_BYTES = 100 * 1024 * 1024 # min 100MB
|
||||
|
||||
Reference in New Issue
Block a user