diff options
author | Guido Guenther <agx@sigxcpu.org> | 2008-03-19 18:01:43 +0100 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2008-03-19 18:01:43 +0100 |
commit | f6134ed463185696284808d2df5020b8e88616aa (patch) | |
tree | 5d7e6dfcfbe681c6ce01e7c0823d62bc39367974 | |
parent | 69c80eea0e00c2c22851758de4370fa2c8ec598b (diff) | |
download | git-buildpackage-f6134ed463185696284808d2df5020b8e88616aa.tar.gz git-buildpackage-f6134ed463185696284808d2df5020b8e88616aa.tar.bz2 git-buildpackage-f6134ed463185696284808d2df5020b8e88616aa.zip |
don't skip meta tags without --force
and make sure we have a space after the meta tag
-rwxr-xr-x | git-dch | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -155,15 +155,15 @@ def parse_commit(repo, commit,meta, short): author = m.group('author') for line in commit[4:]: if line.startswith(' '): # commit body - if short and msg: - continue line = line[4:] - if line.startswith('Closes:'): + if line.startswith('Closes: '): bugs += [ line.split(' ', 1)[1].strip() ] - elif line.startswith('Thanks:'): + elif line.startswith('Thanks: '): thanks = line.split(' ', 1)[1].strip() else: # normal commit message - if line.strip(): # don't add all whitespace lines + if short and msg: + continue + elif line.strip(): # don't add all whitespace lines msg += line else: break |