mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user