You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/03/01 16:56:50 UTC

[2/3] 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/028d388b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/028d388b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/028d388b

Branch: refs/heads/cj/5411
Commit: 028d388b656caaae2ad49f0dd3d5de5ccc977f8f
Parents: 0ad213d
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue Feb 26 09:27:44 2013 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Tue Feb 26 09:27:44 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/028d388b/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)