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.write(handle, text)
os.close(handle) os.close(handle)
if not silent: result = None
os.system(GetEditor() + " " + filename) try:
if not silent:
result = gclient_utils.FileRead(filename, 'r') subprocess.check_call(['env', GetEditor(), filename], shell=True)
os.remove(filename) result = gclient_utils.FileRead(filename, 'r')
finally:
os.remove(filename)
if not result: if not result:
return 0 return 0

Loading…
Cancel
Save