Page MenuHomeSoftware Heritage

D6056.diff
No OneTemporary

D6056.diff

diff --git a/swh/vault/cookers/git_bare.py b/swh/vault/cookers/git_bare.py
--- a/swh/vault/cookers/git_bare.py
+++ b/swh/vault/cookers/git_bare.py
@@ -142,15 +142,15 @@
stderr=subprocess.STDOUT,
env={"LANG": "C.utf8"},
)
- if not self._expected_fsck_errors:
- # All went well, there should not be any error
- proc.check_returncode()
- return
# Split on newlines not followed by a space
errors = re.split("\n(?! )", proc.stdout.decode())
- unexpected_errors = set(filter(bool, errors)) - self._expected_fsck_errors
+ errors = [
+ error for error in errors if error and not error.startswith("warning ")
+ ]
+
+ unexpected_errors = set(errors) - self._expected_fsck_errors
if unexpected_errors:
raise Exception(
"\n".join(

File Metadata

Mime Type
text/plain
Expires
Dec 21 2024, 1:16 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3218656

Event Timeline