Index: git_cl/git_cl.py |
=================================================================== |
--- git_cl/git_cl.py (revision 77971) |
+++ git_cl/git_cl.py (working copy) |
@@ -712,8 +712,9 @@ |
# Open up the default editor in the system to get the CL description. |
cmd = [editor, filename] |
- if sys.platform == 'win32' and os.environ['TERM'] == 'msys': |
- # Msysgit requires the usage of 'env' to be present. |
+ if sys.platform == 'win32' and 'mingw\\bin' in os.environ['PATH']: |
+ # Msysgit requires the usage of 'env' to be present. The only way to |
+ # accomplish that is by reading the environment variable for mingw\bin. |
cmd.insert(0, 'env') |
try: |
subprocess.check_call(cmd) |