Your message dated Thu, 01 Jan 2009 20:32:05 +0000
with message-id <[email protected]>
and subject line Bug#509867: fixed in git-buildpackage 0.4.45
has caused the Debian Bug report #509867,
regarding [PATCH] Use name and email from git by default
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
509867: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509867
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: git-buildpackage
Version: 0.4.43
Severity: wishlist
Tags: patch
For users who use different email addresses for different packages (for
example: for personal and work use), use the details as specified by
git's user.name and user.email by default if they are available.
The maintainer creating the release can be expected to have git
configured correctly for commits.
This applies to the trailer only so that multimaint continues to work
for changelog entries from commits as expected.
---
gbp/git_utils.py | 6 ++++++
git-dch | 12 +++++++++---
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/gbp/git_utils.py b/gbp/git_utils.py
index da8884e..ce4ebed 100644
--- a/gbp/git_utils.py
+++ b/gbp/git_utils.py
@@ -153,6 +153,12 @@ class GitRepository(object):
GitRm(verbose=verbose)(files)
return not self.is_clean()[0]
+ def get_config(self, name):
+ """Gets the config value associated with name"""
+ self.__check_path()
+ value, ret = self.__git_getoutput('config', [ name ])
+ if ret: raise KeyError
+ return value[0][:-1] # first line with \n ending removed
def create_repo(path):
"""create a repository at path"""
diff --git a/git-dch b/git-dch
index d356422..acf1c52 100755
--- a/git-dch
+++ b/git-dch
@@ -82,11 +82,17 @@ def add_changelog_section(msg, distribution, author=None,
email=None, version=No
spawn_dch(msg=msg, newversion= True, version=version, author=author,
email=email, distribution=distribution)
-def fixup_trailer():
+def fixup_trailer(repo):
"""fixup the changelog trailer's comitter and email address - it might
otherwise point to the last git committer instead of the person creating
the changelog"""
- spawn_dch(msg='')
+ try: author = repo.get_config('user.name')
+ except KeyError: author = None
+
+ try: email = repo.get_config('user.email')
+ except KeyError: email = None
+
+ spawn_dch(msg='', author=author, email=email)
def head_commit():
@@ -355,7 +361,7 @@ def main(argv):
if commits:
shortlog_to_dch(repo, commits, options)
- fixup_trailer()
+ fixup_trailer(repo)
elif not first_commit:
print "No changes detected from %s to %s." % (since, until)
--
1.5.6.3
--- End Message ---
--- Begin Message ---
Source: git-buildpackage
Source-Version: 0.4.45
We believe that the bug you reported is fixed in the latest version of
git-buildpackage, which is due to be installed in the Debian FTP archive:
git-buildpackage_0.4.45.dsc
to pool/main/g/git-buildpackage/git-buildpackage_0.4.45.dsc
git-buildpackage_0.4.45.tar.gz
to pool/main/g/git-buildpackage/git-buildpackage_0.4.45.tar.gz
git-buildpackage_0.4.45_all.deb
to pool/main/g/git-buildpackage/git-buildpackage_0.4.45_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Guido Günther <[email protected]> (supplier of updated git-buildpackage package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 01 Jan 2009 20:11:16 +0100
Source: git-buildpackage
Binary: git-buildpackage
Architecture: source all
Version: 0.4.45
Distribution: unstable
Urgency: low
Maintainer: Guido Günther <[email protected]>
Changed-By: Guido Günther <[email protected]>
Description:
git-buildpackage - Suite to help with Debian packages in Git repositories
Closes: 508889 509867
Changes:
git-buildpackage (0.4.45) unstable; urgency=low
.
[ Robie Basak ]
* [6f4af4a] Use name and email from git (Closes: #509867)
.
[ Guido Günther ]
* [b097286] document --no-sign-tags
* [6fe5985] add --no-git-author
* [7c2034c] add --no-sign-tags to git-import-{dsc,orig} too
(Closes: #508889)
Checksums-Sha1:
404a8ff4e003f60a5c47e03f60d2f868c6b03764 971 git-buildpackage_0.4.45.dsc
e1265a7e5183dc2e1f1d8dcc702e09491da3504b 46937 git-buildpackage_0.4.45.tar.gz
cc46842080788926ec92d690601527838ee83d6f 62074 git-buildpackage_0.4.45_all.deb
Checksums-Sha256:
59d1afe635ad84c0c5ac63631afe4b2dafab86d110ffb29d5b649051abe6c485 971
git-buildpackage_0.4.45.dsc
1a00af36f0ba8fd990b343380cf5184d29d442017355dc4ea1a279e3c450f759 46937
git-buildpackage_0.4.45.tar.gz
0ff80168ef33ac563ee7bc06ad0fb1ed8e5f3131bfc488718a57e8cf492f2776 62074
git-buildpackage_0.4.45_all.deb
Files:
c32a0972dae536e2d4536f00afbd7c3e 971 devel optional git-buildpackage_0.4.45.dsc
62d257e97abb8ca5d3bbc49951dbd840 46937 devel optional
git-buildpackage_0.4.45.tar.gz
8a2348ff493ccefc734afc9e640c745d 62074 devel optional
git-buildpackage_0.4.45_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFJXRjbn88szT8+ZCYRAvOnAJ4/1it5SKDK16q7hdd/YpLzNasj6ACeK0cP
nmaaq8mLnCl/ZuMks133a38=
=MvFm
-----END PGP SIGNATURE-----
--- End Message ---