Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: gcl.py

Issue 6683033: Revert 77954 - Use TERM to distinguish between console and msysgit.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | git_cl/git_cl.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcl.py
===================================================================
--- gcl.py (revision 77971)
+++ gcl.py (working copy)
@@ -1065,8 +1065,9 @@
# Open up the default editor in the system to get the CL description.
cmd = [GetEditor(), 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:
if not silent:
« no previous file with comments | « no previous file | git_cl/git_cl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698