def check_for_cygwin_mismatch():
if sys.platform in ('<STR_LIT>', '<STR_LIT:win32>'):  <EOL><INDENT>is_cygwin_python = sys.platform == '<STR_LIT>'<EOL>toplevel = cmd_output('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')[<NUM_LIT:1>]<EOL>is_cygwin_git = toplevel.startswith('<STR_LIT:/>')<EOL>if is_cygwin_python ^ is_cygwin_git:<EOL><INDENT>exe_type = {True: '<STR_LIT>', False: '<STR_LIT>'}<EOL>logger.warn(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(<EOL>exe_type[is_cygwin_python], exe_type[is_cygwin_git],<EOL>),<EOL>)<EOL><DEDENT><DEDENT>
See https://github.com/pre-commit/pre-commit/issues/354