stable

Clone or download

Read-only

Define default mirrors per project

This task is part of story #8734 have new git repositories automatically mirrored A new tab is available in Git administration if at least one mirror is defined. This tab is like the Git repository administration view, but with only one tab "Mirroring". Git administrator is able to select default mirrors for the new repositories. But for now, the new repo are not yet automatically mirrored on creation. Change-Id: I3e7b029c234c8fe2af08be4bb7ab48a58d60d921

Modified Files

Name
M plugins/git/db/install.sql +6 −0 Go to diff View file
A plugins/git/db/mysql/updates/2016/201601141739_add_plugin_git_default_project_mirrors_table.php +48 −0 Go to diff View file
M plugins/git/db/uninstall.sql +1 −0 Go to diff View file
M plugins/git/include/Git.class.php +49 −11 Go to diff View file
A plugins/git/include/Git/Mirror/DefaultProjectMirrorDao.php +59 −0 Go to diff View file
M plugins/git/include/Git/Mirror/MirrorDataMapper.class.php +25 −2 Go to diff View file
M plugins/git/include/GitActions.class.php +41 −6 Go to diff View file
A plugins/git/include/GitPresenters/AdminDefaultSettingsPresenter.php +71 −0 Go to diff View file
M plugins/git/include/GitPresenters/AdminGerritTemplatesPresenter.class.php +2 −2 Go to diff View file
M plugins/git/include/GitPresenters/AdminGitAdminsPresenter.class.php +2 −2 Go to diff View file
M plugins/git/include/GitPresenters/AdminMassUpdatePresenter.class.php +2 −2 Go to diff View file
M plugins/git/include/GitPresenters/AdminMassUpdateSelectRepositoriesPresenter.class.php +2 −2 Go to diff View file
M plugins/git/include/GitPresenters/AdminPresenter.php +12 −11 Go to diff View file
M plugins/git/include/GitViews.class.php +36 −13 Go to diff View file
M plugins/git/include/Git_GitoliteDriver.class.php +2 −1 Go to diff View file
M plugins/git/include/autoload.php +4 −2 Go to diff View file
M plugins/git/include/gitPlugin.class.php +2 −1 Go to diff View file
M plugins/git/site-content/en_US/git.tab +7 −0 Go to diff View file
M plugins/git/site-content/fr_FR/git.tab +7 −0 Go to diff View file
A plugins/git/templates/admin-default-settings.mustache +15 −0 Go to diff View file
M plugins/git/templates/admin.mustache +11 −4 Go to diff View file
A plugins/git/templates/default-mirroring.mustache +44 −0 Go to diff View file
M plugins/git/tests/GitXmlImporterTest.php +26 −4 Go to diff View file
M plugins/git/www/themes/default/css/style.less +8 −0 Go to diff View file