Skip to content

Commit

Permalink
Fix coauthors message
Browse files Browse the repository at this point in the history
  • Loading branch information
quiqueporta committed Sep 12, 2018
1 parent e9fa51e commit 21a005e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coauthors/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.6'
__version__ = '0.8'
4 changes: 2 additions & 2 deletions coauthors/coauthors.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _add_coauthors_to_last_commit(available_coauthors, coauthors):
branch.commit = commit.parents[0]

message = _get_cleaned_commit_message(commit.message)
new_message = _add_coauthors_to_message(message)
new_message = _add_coauthors_to_message(message, available_coauthors, coauthors)

repo.index.commit(new_message)

Expand Down Expand Up @@ -92,7 +92,7 @@ def _get_cleaned_commit_message(commit_message):
return message


def _add_coauthors_to_message(message):
def _add_coauthors_to_message(message, available_coauthors, coauthors):
for coauthor in coauthors:
selected_coauthor = available_coauthors[coauthor]

Expand Down

0 comments on commit 21a005e

Please sign in to comment.