Revert 77913 - Regression: Editor Linux Fix for gcl.
Editor doesn't come up due to Shell=True
BUG=none
TEST=linux and win works
Review URL: http://codereview.chromium.org/6679023
TBR=mhm@chromium.org
Review URL: http://codereview.chromium.org/6684022
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@77928 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl/git_cl.py b/git_cl/git_cl.py
index 083db60..8677adb 100644
--- a/git_cl/git_cl.py
+++ b/git_cl/git_cl.py
@@ -710,8 +710,9 @@
fileobj.write(starting_text)
fileobj.close()
+ result = None
try:
- subprocess.check_call(['env', editor, filename])
+ subprocess.check_call(['env', editor, filename], shell=True)
fileobj = open(filename)
result = fileobj.read()
fileobj.close()