diff options
author | Gustav HÃ¥llberg <gustav@virtutech.com> | 2009-12-04 08:55:02 +0100 |
---|---|---|
committer | Karl Wiberg <kha@treskal.com> | 2009-12-04 08:55:05 +0100 |
commit | aab226cf146c80f8d5acf6dc6284e89834258be1 (patch) | |
tree | babf4ce62353e969c3f2241ecb73ef1419ee3b80 | |
parent | a0045b8750ffa368be49de692dc309d0a7459eb2 (diff) | |
download | stgit-aab226cf146c80f8d5acf6dc6284e89834258be1.tar.gz |
new: Allow empty messages with --message and --file
Signed-off-by: Gustav HÃ¥llberg <gustav@virtutech.com>
-rw-r--r-- | stgit/commands/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stgit/commands/common.py b/stgit/commands/common.py index ac53654..2c525ba 100644 --- a/stgit/commands/common.py +++ b/stgit/commands/common.py @@ -470,7 +470,7 @@ def update_commit_data(cd, options): """Return a new CommitData object updated according to the command line options.""" # Set the commit message from commandline. - if options.message != None: + if options.message is not None: cd = cd.set_message(options.message) # Modify author data. @@ -488,7 +488,7 @@ def update_commit_data(cd, options): # Let user edit the commit message manually, unless # --save-template or --message was specified. - if not getattr(options, 'save_template', None) and not options.message: + if not getattr(options, 'save_template', None) and options.message is None: cd = cd.set_message(edit_string(cd.message, '.stgit-new.txt')) return cd |