diff --git a/pagure/lib/git.py b/pagure/lib/git.py index 2250e91..59bc866 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -649,7 +649,7 @@ def add_file_to_git(repo, issue, ticketfolder, user, filename, filestream): return os.path.join('files', filename) -def update_file_in_git(repo, branch, filename, content, message, user): +def update_file_in_git(repo, branch, filename, content, message, user, email): ''' Update a specific file in the specified repository with the content given and commit the change under the user's name. @@ -703,7 +703,7 @@ def update_file_in_git(repo, branch, filename, content, message, user): # Author/commiter will always be this one author = pygit2.Signature( name=user.username, - email=user.email + email=email ) # Actually commit