Commit 7b8d18f0 authored by jam@chromium.org's avatar jam@chromium.org

Revert 77909 - 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

TBR=mhm@chromium.org
Review URL: http://codereview.chromium.org/6679026

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77929 0039d316-1c4b-4281-b951-d872f2087c98
parent 93efa031
...@@ -1063,13 +1063,11 @@ def CMDchange(args): ...@@ -1063,13 +1063,11 @@ def CMDchange(args):
os.write(handle, text) os.write(handle, text)
os.close(handle) os.close(handle)
result = None if not silent:
try: os.system(GetEditor() + " " + filename)
if not silent:
subprocess.check_call(['env', GetEditor(), filename], shell=True) result = gclient_utils.FileRead(filename, 'r')
result = gclient_utils.FileRead(filename, 'r') os.remove(filename)
finally:
os.remove(filename)
if not result: if not result:
return 0 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