stable

Clone or download

Read-only

The default branch of a repo can be modified

A selector is accessible in the "General Settings" panel of the administration of Git repositories. The selector is not visible when the repository does not have branches. Part of request #13356: Allow to change the default branch Co-authored-by: Thomas Gorka <thomas.gorka@enalean.com> Change-Id: I1181bc195e28d3b49d05df7e6b7eed553dc8538a

Modified Files

Name
A plugins/git/include/DefaultBranch/CannotSetANonExistingBranchAsDefaultException.php +33 −0 Go to diff View file
A plugins/git/include/DefaultBranch/DefaultBranchUpdater.php +45 −0 Go to diff View file
A plugins/git/include/DefaultBranch/RepositoryBranchSelectorOptionPresenter.php +39 −0 Go to diff View file
M plugins/git/include/Git.class.php +18 −2 Go to diff View file
M plugins/git/include/GitViews/RepoManagement/Pane/GeneralSettings.class.php +38 −0 Go to diff View file
M plugins/git/include/gitPlugin.php +2 −0 Go to diff View file
M plugins/git/site-content/fr_FR/LC_MESSAGES/tuleap-git.po +11 −2 Go to diff View file
M plugins/git/templates/settings/general-settings.mustache +12 −1 Go to diff View file
A plugins/git/tests/unit/DefaultBranch/DefaultBranchUpdaterTest.php +63 −0 Go to diff View file
A plugins/git/tests/unit/DefaultBranch/RepositoryBranchSelectorOptionPresenterTest.php +45 −0 Go to diff View file
M plugins/git/tests/unit/GitGerritRouteTest.php +1 −0 Go to diff View file