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
experimental/szager/collated-output
mhm@chromium.org 14 years ago
parent 5dae94ac92
commit 0f9ee77b9a

@ -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

Loading…
Cancel
Save