allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [17/28] git commit: [#7325] Disabled Fork button on empty (uninitialized) repositories, since they cannot be merged
Date Fri, 18 Jul 2014 19:02:24 GMT
[#7325] Disabled Fork button on empty (uninitialized) repositories, since they cannot be merged


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

Branch: refs/heads/db/7523
Commit: e3ad3c3f657cce98ed94149293c8d4802b6aa67d
Parents: e8b6e66
Author: Cory Johns <johnsca@gmail.com>
Authored: Sat Jun 28 20:41:08 2014 -0400
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Jul 10 20:37:16 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/repository.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/e3ad3c3f/Allura/allura/lib/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/repository.py b/Allura/allura/lib/repository.py
index 33c3904..e0b139e 100644
--- a/Allura/allura/lib/repository.py
+++ b/Allura/allura/lib/repository.py
@@ -122,7 +122,7 @@ class RepositoryApp(Application):
             return []
         links = [SitemapEntry('Browse Commits', c.app.url +
                               'commit_browser', ui_icon=g.icons['folder'])]
-        if self.forkable and self.repo.status == 'ready':
+        if self.forkable and self.repo.status == 'ready' and not self.repo.is_empty():
             links.append(
                 SitemapEntry('Fork', c.app.url + 'fork', ui_icon=g.icons['fork']))
         merge_request_count = self.repo.merge_requests_by_statuses(


Mime
View raw message