Chromium Code Reviews| Index: gcl.py |
| =================================================================== |
| --- gcl.py (revision 77947) |
| +++ gcl.py (working copy) |
| @@ -1065,9 +1065,8 @@ |
| # Open up the default editor in the system to get the CL description. |
| cmd = [GetEditor(), filename] |
| - 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. |
| + if sys.platform == 'win32' and os.environ['TERM'] == 'msys': |
|
M-A Ruel
2011/03/13 21:16:17
os.environ.get('TERM') would have worked but it's
|
| + # Msysgit requires the usage of 'env' to be present. |
| cmd.insert(0, 'env') |
| try: |
| if not silent: |