Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fcfdafd

Browse files
committed
fix(cygwin): MSYS2 is CYGWIN-derivative, so is_cygwin_git() --> true
1 parent 1fbcf36 commit fcfdafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def is_cygwin_git(git_executable):
350350
universal_newlines=True)
351351
uname_out, _ = process.communicate()
352352
#retcode = process.poll()
353-
is_cygwin = 'CYGWIN' in uname_out
353+
is_cygwin = 'CYGWIN' in uname_out or 'MSYS' in uname_out
354354
except Exception as ex:
355355
log.debug('Failed checking if running in CYGWIN due to: %r', ex)
356356
_is_cygwin_cache[git_executable] = is_cygwin

0 commit comments

Comments
 (0)