git-dch --git-author: separate author and email
authorDmitrij Tejblum <tejblum@yandex-team.ru>
Sun, 8 Feb 2015 10:23:55 +0000 (13:23 +0300)
committerGuido 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

index 356f74d7e073f81e0b9b6ab678a62276a33cd326..b3c56efe8744e8dca52dd779409a616c2e282897 100644 (file)
@@ -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)