#1186 When adding files to the a git repo, rely on the user object from the db
Merged by pingou. Opened by pingou.
fix_new_issue  into  master

Download 1186.patch

We need this change in order to get the local auth working properly.
Otherwise, pagure.lib.git.add_file_to_git relied on the given user object
having a .email which when using the local auth is not true and
therefore leads to a crash.
With this change, we retrieve the user object from the database and
therefore we can just use the default email set to the user there.

rebased

:thumbsup:

Thanks :)

Pull-Request has been merged by pingou

Metadata