Commit 0f9ee77b authored by mhm@chromium.org's avatar mhm@chromium.org

msysgit - Fix issue where gcl doesn't recognize the editor.

gcl is now fully compatible with msysgit.

BUG=70550
TEST=gcl change through msysgit.

Review URL: http://codereview.chromium.org/6689001

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77909 0039d316-1c4b-4281-b951-d872f2087c98
parent 5dae94ac
......@@ -1063,11 +1063,13 @@ def CMDchange(args):
os.write(handle, text)
os.close(handle)
if not silent:
os.system(GetEditor() + " " + filename)
result = gclient_utils.FileRead(filename, 'r')
os.remove(filename)
result = None
try:
if not silent:
subprocess.check_call(['env', GetEditor(), filename], shell=True)
result = gclient_utils.FileRead(filename, 'r')
finally:
os.remove(filename)
if not result:
return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment