This is an automated email from the ASF dual-hosted git repository.

gcruz pushed a commit to branch gc/8518
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/gc/8518 by this push:
     new 4610da8c4 fixup! [#8518] added background task that updates the head 
ref
4610da8c4 is described below

commit 4610da8c447810495d7eb9650df37a210414ece1
Author: Guillermo Cruz <[email protected]>
AuthorDate: Mon Aug 14 13:39:24 2023 -0600

    fixup! [#8518] added background task that updates the head ref
---
 Allura/allura/tasks/repo_tasks.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/tasks/repo_tasks.py 
b/Allura/allura/tasks/repo_tasks.py
index ea95f0979..3177b50b8 100644
--- a/Allura/allura/tasks/repo_tasks.py
+++ b/Allura/allura/tasks/repo_tasks.py
@@ -183,6 +183,6 @@ def determine_mr_commits(merge_request_id):
 
 @task
 def update_head_reference(fs_path, branch_name):
-    git = git.Repo(fs_path, odbt=git.GitCmdObjectDB)
-    git.head.reference = branch_name
+    _git = git.Repo(fs_path, odbt=git.GitCmdObjectDB)
+    _git.head.reference = branch_name
 

Reply via email to