Skip to content

The "Open this repository on GitLab button" is always trying to open the file in the "master" branch #3

@beenje

Description

@beenje

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions