You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2014/06/29 02:42:12 UTC

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

Repository: allura
Updated Branches:
  refs/heads/cj/7325 [created] 0e4f2284b


[#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/0e4f2284
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/0e4f2284
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/0e4f2284

Branch: refs/heads/cj/7325
Commit: 0e4f2284b0ccc63ab3b6c015de196b2c17dc157b
Parents: 4ee0a8c
Author: Cory Johns <jo...@gmail.com>
Authored: Sat Jun 28 20:41:08 2014 -0400
Committer: Cory Johns <jo...@gmail.com>
Committed: Sat Jun 28 20:41:08 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/allura/blob/0e4f2284/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(