From 8621bdaae1247936d169ff1e73ee59a63fb935f9 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 10 Oct 2023 20:56:02 +0200 Subject: [PATCH] Don't use check=True for git diff (ends with code 1) --- sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync.py b/sync.py index 8dfd72d..c1487ca 100755 --- a/sync.py +++ b/sync.py @@ -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("_", " ")