James Moger
2012-09-29 1e1b85270f93b3bca624c99b478f3a9a23be2395
refs
author James Moger <james.moger@gitblit.com>
Saturday, September 29, 2012 23:40 -0400
committer James Moger <james.moger@gitblit.com>
Saturday, September 29, 2012 23:40 -0400
commit1e1b85270f93b3bca624c99b478f3a9a23be2395
tree 8dfcbd8ca4813d2a42455c62cae3b433d8c0c28a tree | zip | gz
parent 0d531b187e123dea5e83b5b7d4749478f26254c1 view | diff
Preliminary implementation of server-side forking (issue-137)

The fork mechanism clones the repository , access restrictions, and
other config options. The app has been updated throughout to handle
personal repositories and to properly display origin/fork links.

In order to fork a repository the user account must have the #fork role,
the origin repository must permit forking, and the user account must
have standard clone permissions to the repository.

Because forking introduces a new user role no existing user accounts can
automatically begin forking a repository. This is both a pro and a con.

Since the fork has the same access restrictions as the origin repository,
those who can access the origin may also access the fork. This is intentional
to facilitate integration-manager workflow. The fork owner does have the
power to completely change the access restrictions of his/her fork.
6 files added
38 files modified
1542 ■■■■ changed files
.project 46 ●●●● diff | view | raw | blame | history
docs/04_releases.mkd 13 ●●●●● diff | view | raw | blame | history
docs/05_roadmap.mkd 1 ●●●● diff | view | raw | blame | history
resources/gitblit.css 46 ●●●●● diff | view | raw | blame | history
src/com/gitblit/ConfigUserService.java 4 ●●●● diff | view | raw | blame | history
src/com/gitblit/Constants.java 2 ●●●●● diff | view | raw | blame | history
src/com/gitblit/FileUserService.java 5 ●●●●● diff | view | raw | blame | history
src/com/gitblit/GitBlit.java 187 ●●●● diff | view | raw | blame | history
src/com/gitblit/SyndicationServlet.java 2 ●●● diff | view | raw | blame | history
src/com/gitblit/models/ProjectModel.java 4 ●●●● diff | view | raw | blame | history
src/com/gitblit/models/RepositoryModel.java 49 ●●●●● diff | view | raw | blame | history
src/com/gitblit/models/UserModel.java 29 ●●●●● diff | view | raw | blame | history
src/com/gitblit/utils/ActivityUtils.java 2 ●●● diff | view | raw | blame | history
src/com/gitblit/utils/JGitUtils.java 14 ●●●●● diff | view | raw | blame | history
src/com/gitblit/utils/StringUtils.java 29 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/GitBlitWebApp.java 4 ●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/GitBlitWebApp.properties 16 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/BasePage.java 9 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/EditRepositoryPage.html 4 ●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/EditRepositoryPage.java 1 ●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/EditUserPage.html 5 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/EditUserPage.java 1 ●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/ForksPage.html 24 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/ForksPage.java 133 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/GitSearchPage.java 2 ●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/HistoryPage.java 2 ●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/LogPage.java 2 ●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/ProjectPage.html 70 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/ProjectPage.java 152 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/ProjectsPage.java 8 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/RepositoryPage.html 34 ●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/RepositoryPage.java 123 ●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/RootPage.java 9 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/SummaryPage.java 2 ●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/UserPage.html 44 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/pages/UserPage.java 146 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/panels/GravatarImage.java 2 ●●● diff | view | raw | blame | history
src/com/gitblit/wicket/panels/HistoryPanel.java 4 ●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/panels/LogPanel.java 4 ●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/panels/ProjectRepositoryPanel.html 79 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/panels/ProjectRepositoryPanel.java 199 ●●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/panels/RepositoriesPanel.html 2 ●●● diff | view | raw | blame | history
src/com/gitblit/wicket/panels/RepositoriesPanel.java 23 ●●●● diff | view | raw | blame | history
src/com/gitblit/wicket/panels/SearchPanel.java 5 ●●●●● diff | view | raw | blame | history