incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [22/24] git commit: [#5411] ticket:282 Skip git submodules when computing trees
Date Fri, 01 Mar 2013 15:58:04 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/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/cj/5411
Commit: 9be5273272b00e7fedd8ab0df989c44238e6ebe2
Parents: 92885fc
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Feb 26 09:27:44 2013 +0000
Committer: Cory Johns <johnsca@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)


Mime
View raw message