mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
macOS: Fix detection of differ
There can be a wrapper git on macOS that complains about command line tools installation, so check that passing --help to it actually works.
This commit is contained in:
parent
6761fdca1a
commit
5af551c96d
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ worker_processes = []
|
|||
|
||||
|
||||
def find_differ():
|
||||
if shutil.which('git'):
|
||||
if shutil.which('git') and subprocess.Popen(['git', '--help']).wait() == 0:
|
||||
return GIT_DIFF
|
||||
if shutil.which('diff'):
|
||||
return DIFF_DIFF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue