You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/03/05 23:42:11 UTC

[8/50] [abbrv] git commit: [#5411] ticket:282 Skip git submodules when computing trees

[#5411] ticket:282 Skip git submodules when computing trees


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

Branch: refs/heads/si/5453
Commit: 9be5273272b00e7fedd8ab0df989c44238e6ebe2
Parents: 92885fc
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue Feb 26 09:27:44 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Fri Mar 1 15:57:39 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/9be52732/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index a659ed5..092d24d 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -238,6 +238,8 @@ class GitImplementation(M.RepositoryImplementation):
                 blob_ids=[],
                 other_ids=[]))
         for o in tree:
+            if o.type == 'submodule':
+                continue
             obj = Object(
                 name=h.really_unicode(o.name),
                 id=o.hexsha)