git-dch: don't add empty changelog entries with "Git-Dch: Ignore"
authorGuido Günther <agx@sigxcpu.org>
Sat, 8 Jan 2011 17:18:28 +0000 (18:18 +0100)
committerGuido Günther <agx@sigxcpu.org>
Sat, 8 Jan 2011 18:08:23 +0000 (19:08 +0100)
git-dch

diff --git a/git-dch b/git-dch
index d2271be..5ba80fa 100755 (executable)
--- a/git-dch
+++ b/git-dch
@@ -441,11 +441,11 @@ def main(argv):
             i += 1
             parsed = parse_commit(repo, c, options,
                                   last_commit = i == len(commits))
-            if not parsed:
+            commit_msg, (commit_author, commit_email) = parsed
+            if not commit_msg:
                 # Some commits can be ignored
                 continue
 
-            commit_msg, (commit_author, commit_email) = parsed
             if add_section:
                 # Add a section containing just this message (we can't
                 # add an empty section with dch)