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 2012/09/19 20:43:27 UTC

[6/50] git commit: [#4964] Changed the GitPython backend to work around https://github.com/gitpython-developers/GitPython/issues/60 and potentially improve performance

[#4964] Changed the GitPython backend to work around https://github.com/gitpython-developers/GitPython/issues/60 and potentially improve performance

Signed-off-by: Cory Johns <jo...@geek.net>


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

Branch: refs/heads/master
Commit: 33b4fb9875445741ea56972a527fb15a1082a068
Parents: 24c231f
Author: Cory Johns <jo...@geek.net>
Authored: Tue Sep 18 16:36:14 2012 +0000
Committer: Dave Brondsema <db...@geek.net>
Committed: Tue Sep 18 19:34:09 2012 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/33b4fb98/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index d8270f5..5bf0265 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -62,7 +62,7 @@ class GitImplementation(M.RepositoryImplementation):
     @LazyProperty
     def _git(self):
         try:
-            return git.Repo(self._repo.full_fs_path)
+            return git.Repo(self._repo.full_fs_path, odbt=git.GitCmdObjectDB)
         except (git.exc.NoSuchPathError, git.exc.InvalidGitRepositoryError), err:
             log.error('Problem looking up repo: %r', err)
             return None