allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [1/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
Date Thu, 20 Sep 2018 13:26:59 GMT
Repository: allura
Updated Branches:
  refs/heads/master f78c70d13 -> 411f59b0d


[#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/411f59b0
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/411f59b0
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/411f59b0

Branch: refs/heads/master
Commit: 411f59b0dde7dba6ef76bab9f6ae6abf47bab5d1
Parents: 29fb958
Author: Dave Brondsema <dave@brondsema.net>
Authored: Tue Sep 18 13:58:43 2018 -0400
Committer: root <root@sft-box-5.v32.lw.sourceforge.com>
Committed: Thu Sep 20 13:24:41 2018 +0000

----------------------------------------------------------------------
 Allura/allura/templates/repo/admin_extensions.html | 2 +-
 ForgeGit/forgegit/model/git_repo.py                | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/411f59b0/Allura/allura/templates/repo/admin_extensions.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/repo/admin_extensions.html b/Allura/allura/templates/repo/admin_extensions.html
index f3801cf..8a96885 100644
--- a/Allura/allura/templates/repo/admin_extensions.html
+++ b/Allura/allura/templates/repo/admin_extensions.html
@@ -35,7 +35,7 @@
   <hr>
   <div class="grid-13">&nbsp;</div>
   <div class="grid-13">
-    <input type="button" value="Save" class="submit">
+    <input type="submit" value="Save" class="submit">
     {{lib.csrf_token()}}
   </div>
   {% endif %}

http://git-wip-us.apache.org/repos/asf/allura/blob/411f59b0/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)
 


Mime
View raw message