projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0881bfc
)
git-dch --git-author: separate author and email
author
Dmitrij Tejblum
<tejblum@yandex-team.ru>
Sun, 8 Feb 2015 10:23:55 +0000
(13:23 +0300)
committer
Guido Günther
<agx@sigxcpu.org>
Tue, 17 Feb 2015 18:11:53 +0000
(19:11 +0100)
Allow --git-author to work if either author or email is not specified
in the git config, taking the other config option into account.
gbp/deb/changelog.py
patch
|
blob
|
history
diff --git
a/gbp/deb/changelog.py
b/gbp/deb/changelog.py
index 356f74d7e073f81e0b9b6ab678a62276a33cd326..b3c56efe8744e8dca52dd779409a616c2e282897 100644
(file)
--- a/
gbp/deb/changelog.py
+++ b/
gbp/deb/changelog.py
@@
-245,8
+245,10
@@
class ChangeLog(object):
args.extend(["--release", "--no-force-save-on-release"])
msg = None
- if author and email:
- env = {'DEBFULLNAME': author, 'DEBEMAIL': email}
+ if author:
+ env['DEBFULLNAME'] = author
+ if email:
+ env['DEBEMAIL'] = email
if distribution:
args.append("--distribution=%s" % distribution)