You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/07/18 21:02:24 UTC

[17/28] git commit: [#7325] Disabled Fork button on empty (uninitialized) repositories, since they cannot be merged

[#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 <jo...@gmail.com>
Authored: Sat Jun 28 20:41:08 2014 -0400
Committer: Dave Brondsema <db...@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(