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 <[email protected]> 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):
