incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/3] git commit: [#5411] ticket:282 Skip git submodules when computing trees
Date Fri, 01 Mar 2013 15:56:50 GMT
[#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 <jetmind2@gmail.com>
Authored: Tue Feb 26 09:27:44 2013 +0000
Committer: Igor Bondarenko <jetmind2@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)


Mime
View raw message