You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by gc...@apache.org on 2023/08/08 21:54:20 UTC

[allura] branch gc/8518 created (now cbbf194ff)

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

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


      at cbbf194ff [#8518] update git head reference when setting a default branch

This branch includes the following new commits:

     new cbbf194ff [#8518] update git head reference when setting a default branch

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[allura] 01/01: [#8518] update git head reference when setting a default branch

Posted by gc...@apache.org.
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

commit cbbf194ff6b951afa13b9d16ae7a4f40d1d8e0e0
Author: Guillermo Cruz <gu...@slashdotmedia.com>
AuthorDate: Tue Aug 8 15:54:13 2023 -0600

    [#8518] update git head reference when setting a default branch
---
 ForgeGit/forgegit/model/git_repo.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index 37758f5d6..a143f6938 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -636,6 +636,7 @@ class GitImplementation(M.RepositoryImplementation):
         if not name:
             return
         self._repo.default_branch_name = name
+        self._git.head.reference = name
         session(self._repo).flush(self._repo)
 
     def _get_last_commit(self, commit_id, paths):