Skip to content

Commit

Permalink
Include Co-authored-by entries in AUTHORS
Browse files Browse the repository at this point in the history
Import latest openstack.common.setup from oslo-incubator, which includes
the fix to include Co-authored-by entries in AUTHORS.

Fixes bug 1158319

Change-Id: I4f0ba09816730d10869c4ca639e2930d266eac8f
  • Loading branch information
ttx committed Mar 25, 2013
1 parent 2d02ce3 commit c88db2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nova/openstack/common/setup.py
Expand Up @@ -171,6 +171,14 @@ def generate_authors():
" log --format='%aN <%aE>' | sort -u | "
"egrep -v '" + jenkins_email + "'")
changelog = _run_shell_command(git_log_cmd)
signed_cmd = ("git log --git-dir=" + git_dir +
" | grep -i Co-authored-by: | sort -u")
signed_entries = _run_shell_command(signed_cmd)
if signed_entries:
new_entries = "\n".join(
[signed.split(":", 1)[1].strip()
for signed in signed_entries.split("\n") if signed])
changelog = "\n".join((changelog, new_entries))
mailmap = _parse_git_mailmap(git_dir)
with open(new_authors, 'w') as new_authors_fh:
new_authors_fh.write(canonicalize_emails(changelog, mailmap))
Expand Down

0 comments on commit c88db2c

Please sign in to comment.