summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9ee0285)
Signed-off-by: Karl Hasselström <kha@treskal.com>
# the editor
editor = config.get('stgit.editor')
# the editor
editor = config.get('stgit.editor')
- if editor:
- pass
- elif 'EDITOR' in os.environ:
- editor = os.environ['EDITOR']
- else:
- editor = 'vi'
+ if not editor:
+ editor = os.environ.get('EDITOR', 'vi')
editor += ' %s' % filename
out.start('Invoking the editor: "%s"' % editor)
editor += ' %s' % filename
out.start('Invoking the editor: "%s"' % editor)