stable

Clone or download

Read-only

Fix request #31550 Git UI tab switching must keep selected branch

When switching tabs in Git web UI (files and commits), then the selected branch is not kept and the tab displays its content with the default branch. How to test ----------- * Go to a Git repository * In the Files tab, selected another branch than the default * Go to Commits tab => Selected branch must be kept * Go to a Git repository * In the Commits tab, selected another branch than the default * Go to Files tab => Selected branch must be kept * Go to a Git repository * In the Commits tab, selected a specific commit by clicking on it * Go to Files tab => Selected commit must be kept Change-Id: I81e80f8e39341d5a894a4567730a993fcc4c0834

Modified Files

Name
M plugins/git/include/Git/Repository/GitRepositoryHeaderDisplayerBuilder.php +5 −1 Go to diff View file
M plugins/git/include/Git/Repository/View/RepositoryHeaderPresenterBuilder.php +3 −6 Go to diff View file
A plugins/git/include/Git/Repository/View/RepositoryHeaderTabsURLBuilder.php +83 −0 Go to diff View file
A plugins/git/tests/unit/Git/Repository/View/RepositoryHeaderTabsURLBuilderTest.php +122 −0 Go to diff View file