diff options
author | Michael Elovskikh <wronglink@yandex-team.ru> | 2016-06-01 22:50:34 +0500 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-07-06 13:34:43 +0200 |
commit | a6311e67657caad551ca0908a17e1c1339507472 (patch) | |
tree | e44d19fa68cd02a325b899bbebfe19d927339e60 /gbp | |
parent | 7ba43f653c44a7e1e453b59e37ae9f5ebc8ad6c4 (diff) |
Added option `never` to dch `--spawn-editor` choices
Diffstat (limited to 'gbp')
-rw-r--r-- | gbp/scripts/dch.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py index 5bc2b62e..2f6b6c6a 100644 --- a/gbp/scripts/dch.py +++ b/gbp/scripts/dch.py @@ -286,10 +286,10 @@ def process_editor_option(options): elif options.release: states.append("release") - if options.spawn_editor in states: - return "sensible-editor" - else: + if options.spawn_editor == 'never' or options.spawn_editor not in states: return None + else: + return "sensible-editor" def changelog_commit_msg(options, version): |