You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2018/05/07 15:27:35 UTC

allura git commit: Avoid calling _git.heads unnecessarily

Repository: allura
Updated Branches:
  refs/heads/master cd89d377b -> fb8bd7cd8


Avoid calling _git.heads unnecessarily


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

Branch: refs/heads/master
Commit: fb8bd7cd8edc142f5332dac82cd20d8cf275327b
Parents: cd89d37
Author: Dave Brondsema <da...@brondsema.net>
Authored: Tue May 1 14:26:32 2018 -0400
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Tue May 1 14:26:32 2018 -0400

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


http://git-wip-us.apache.org/repos/asf/allura/blob/fb8bd7cd/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index 0fae9d2..0de4c15 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -585,7 +585,7 @@ class GitImplementation(M.RepositoryImplementation):
 
     @LazyProperty
     def head(self):
-        if not self._git or not self._git.heads:
+        if not self._git:
             return None
         # if the repo's HEAD file doesn't point to a valid branch, we need to select one
         # this can happen in particular with masterless repos