Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124548
D6056.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
896 B
Subscribers
None
D6056.diff
View Options
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
Details
Attached
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
Attached To
D6056: Don't hide git-fsck error messages, even when none is expected
Event Timeline
Log In to Comment