This commit is contained in:
Kovid Goyal 2019-01-19 13:51:18 +05:30
parent 5af551c96d
commit 6b6dea5190
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -18,7 +18,7 @@ worker_processes = []
def find_differ():
if shutil.which('git') and subprocess.Popen(['git', '--help']).wait() == 0:
if shutil.which('git') and subprocess.Popen(['git', '--help'], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL).wait() == 0:
return GIT_DIFF
if shutil.which('diff'):
return DIFF_DIFF