From f61d0a0d5af450e7f8762b1cce4a7d04e1b1fbf5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 20 2015 10:35:13 +0000 Subject: Update the pull-request in git if we change it in the DB --- diff --git a/progit/ui/fork.py b/progit/ui/fork.py index 029eb73..e91bb9d 100644 --- a/progit/ui/fork.py +++ b/progit/ui/fork.py @@ -132,6 +132,9 @@ def request_pull(repo, requestid, username=None): SESSION.add(request) try: SESSION.commit() + progit.lib.git.update_git( + request, repo=request.repo, + repofolder=APP.config['REQUESTS_FOLDER']) except SQLAlchemyError as err: SESSION.rollback() APP.logger.exception(err)