From 920ce61eb6b63d2f6f4b985b30c7b6220a3e38a1 Mon Sep 17 00:00:00 2001 From: Ali Almohaya Date: Mon, 26 Sep 2022 23:02:31 +0300 Subject: [PATCH] fix: opening in repo with same repo branch --- lua/openingh/init.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lua/openingh/init.lua b/lua/openingh/init.lua index 769d9bd..b719181 100644 --- a/lua/openingh/init.lua +++ b/lua/openingh/init.lua @@ -47,14 +47,9 @@ function M.openRepo() end 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 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 - end + repo_page_url = M.repo_url .. "/tree/" .. current_branch_name local result = utils.open_url(repo_page_url)