Description
The "master" branch is hard-coded when using the "Open this repository on GitLab" button:
|
if (resource.repository) { |
|
url = URLExt.join( |
|
url, |
|
resource.repository, |
|
'tree', |
|
'master', |
|
resource.path |
|
); |
The button should use the repository default branch instead.
Note that when browsing a repository, the default branch is now retrieved via the API (see dd985a3) but this isn't used for the toolbar button yet.