dgoodwin/tito — Issue #35: EDITOR with arguments produces backtrace
Author: jeckersb
Created: 2012-01-23 20:16:03+00:00
State: open

tito does not properly handle an EDITOR environment variable with arguments, due to the way it invokes subprocess.call:

```
[jeckersb@baozi aeolus-configure]$ echo $EDITOR
emacs --quick -nw
[jeckersb@baozi aeolus-configure]$ tito tag --keep-version
Traceback (most recent call last):
File "/usr/bin/tito", line 23, in
CLI().main(sys.argv[1:])
File "/usr/lib/python2.7/site-packages/tito/cli.py", line 93, in main
return module.main(argv)
File "/usr/lib/python2.7/site-packages/tito/cli.py", line 676, in main
return tagger.run(self.options)
File "/usr/lib/python2.7/site-packages/tito/tagger.py", line 99, in run
self._tag_release()
File "/usr/lib/python2.7/site-packages/tito/tagger.py", line 105, in _tag_release
self._make_changelog()
File "/usr/lib/python2.7/site-packages/tito/tagger.py", line 223, in _make_changelog
subprocess.call([editor, name])
File "/usr/lib64/python2.7/subprocess.py", line 493, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1228, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
```