Remove branch logic

This commit is contained in:
Harrison Cramer
2023-08-17 16:35:55 -04:00
parent 0ccff54933
commit 14bb2800e5

View File

@@ -135,9 +135,6 @@ M.setPluginConfiguration = function(args)
state.AUTH_TOKEN = auth_token or os.getenv("GITLAB_TOKEN") state.AUTH_TOKEN = auth_token or os.getenv("GITLAB_TOKEN")
state.GITLAB_URL = gitlab_url or "https://gitlab.com" state.GITLAB_URL = gitlab_url or "https://gitlab.com"
local current_branch_raw = io.popen("git rev-parse --abbrev-ref HEAD"):read("*a")
local current_branch = string.gsub(current_branch_raw, "\n", "")
if state.AUTH_TOKEN == nil then if state.AUTH_TOKEN == nil then
error("Missing authentication token for Gitlab") error("Missing authentication token for Gitlab")
end end