allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#6938] check that a forked repo's project exists
Date Wed, 15 Jan 2014 17:06:26 GMT
Updated Branches:
  refs/heads/master fedb1ec03 -> 3d7741fe9


[#6938] check that a forked repo's project exists

>From Igor Bondarenko


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

Branch: refs/heads/master
Commit: 3d7741fe940d162f0caecfe6457583dc57edd644
Parents: fedb1ec
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Wed Jan 15 17:02:25 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Jan 15 17:02:25 2014 +0000

----------------------------------------------------------------------
 Allura/allura/model/repository.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3d7741fe/Allura/allura/model/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
index a328b3e..b6cfb9a 100644
--- a/Allura/allura/model/repository.py
+++ b/Allura/allura/model/repository.py
@@ -626,7 +626,9 @@ class Repository(Artifact, ActivityObject):
     @property
     def forks(self):
         all_forks = self.query.find({'upstream_repo.name': self.url()}).all()
-        return filter(lambda fork: fork.app_config is not None, all_forks)
+        return filter(lambda fork: fork.app_config is not None
+                                   and fork.app_config.project is not None,
+                      all_forks)
 
     def tarball(self, revision, path=None):
         if path:


Mime
View raw message