fix: opening in repo with same repo branch
This commit is contained in:
parent
b712206961
commit
920ce61eb6
1 changed files with 1 additions and 6 deletions
|
|
@ -47,14 +47,9 @@ function M.openRepo()
|
||||||
end
|
end
|
||||||
|
|
||||||
local repo_page_url = M.repo_url
|
local repo_page_url = M.repo_url
|
||||||
|
|
||||||
-- check if not the default branch add it to the url
|
|
||||||
local current_branch_name = utils.get_current_branch()
|
local current_branch_name = utils.get_current_branch()
|
||||||
local default_branch_name = utils.get_defualt_branch()
|
|
||||||
|
|
||||||
if current_branch_name ~= default_branch_name then
|
repo_page_url = M.repo_url .. "/tree/" .. current_branch_name
|
||||||
repo_page_url = M.repo_url .. "/tree/" .. current_branch_name
|
|
||||||
end
|
|
||||||
|
|
||||||
local result = utils.open_url(repo_page_url)
|
local result = utils.open_url(repo_page_url)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue