You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2018/09/18 17:59:50 UTC

[3/3] allura git commit: [#8231] don't actually change the repo (web process might not have permission to, and this can get called from get_default_branch() automatically

[#8231] don't actually change the repo (web process might not have permission to, and this can get called from get_default_branch() automatically


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/572fe0f2
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/572fe0f2
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/572fe0f2

Branch: refs/heads/db/8231
Commit: 572fe0f267c643ef3b61a61c2b75700fe6b212d4
Parents: 4ebec5c
Author: Dave Brondsema <da...@brondsema.net>
Authored: Tue Sep 18 13:58:43 2018 -0400
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Tue Sep 18 13:58:43 2018 -0400

----------------------------------------------------------------------
 ForgeGit/forgegit/model/git_repo.py | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/572fe0f2/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index 950c0c8..a2d55db 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -616,8 +616,6 @@ class GitImplementation(M.RepositoryImplementation):
     def set_default_branch(self, name):
         if not name:
             return
-        # HEAD should point to default branch
-        self._git.git.symbolic_ref('HEAD', 'refs/heads/%s' % name)
         self._repo.default_branch_name = name
         session(self._repo).flush(self._repo)