| |
@@ -1856,7 +1856,7 @@
|
| |
return "Changes merged!"
|
| |
|
| |
|
| |
- def rebase_pull_request(request, username):
|
| |
+ def rebase_pull_request(session, request, username):
|
| |
""" Rebase the specified pull-request.
|
| |
|
| |
Args:
|
| |
@@ -1871,6 +1871,7 @@
|
| |
|
| |
"""
|
| |
_log.info("%s asked to rebase the pull-request: %s", username, request)
|
| |
+ user = pagure.lib.query.get_user(session, username)
|
| |
|
| |
if request.remote:
|
| |
# Get the fork
|
| |
@@ -1941,7 +1942,7 @@
|
| |
# Configure git for that user
|
| |
command = ["git", "config", "user.name", username]
|
| |
_run_command(command)
|
| |
- command = ["git", "config", "user.email", "%s@pagure" % username]
|
| |
+ command = ["git", "config", "user.email", user.default_email]
|
| |
_run_command(command)
|
| |
|
| |
# Do the rebase
|
| |
We used to use a dummy email address when rebasing. With this
commit we are instead using the default email address of the user
asking for the rebase.
Fixes https://pagure.io/pagure/issue/4379
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr