mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-24 12:14:35 +00:00
Don't use check=True for git diff (ends with code 1)
This commit is contained in:
parent
f1531c7274
commit
8621bdaae1
4
sync.py
4
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("_", " ")
|
||||
|
|
Loading…
Reference in a new issue