Don't use check=True for git diff (ends with code 1)

This commit is contained in:
ItsDrike 2023-10-10 20:56:02 +02:00
parent f1531c7274
commit 8621bdaae1
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -349,8 +349,8 @@ def show_diffs(diffs: Iterable[FileDiff], ask_show_diff: bool, apply_fix_prompt:
continue
case DiffStatus.CONTENT_DIFFERS:
if ask_show_diff is False or yes_no(f"Show diff for {diff.sys_file}?"):
subprocess.run(
["git", "diff", str(diff.dot_file), str(diff.sys_file)], check=True # noqa: S607,S603
subprocess.run( # noqa: PLW1510
["git", "diff", str(diff.dot_file), str(diff.sys_file)], # noqa: S607,S603
)
case _:
_str_status = diff.status.name.replace("_", " ")