From 14bb2800e56f0d10e3be83d84e9ed40cac76d039 Mon Sep 17 00:00:00 2001 From: Harrison Cramer Date: Thu, 17 Aug 2023 16:35:55 -0400 Subject: [PATCH] Remove branch logic --- lua/gitlab/init.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/lua/gitlab/init.lua b/lua/gitlab/init.lua index e2fd0af..50b780b 100644 --- a/lua/gitlab/init.lua +++ b/lua/gitlab/init.lua @@ -135,9 +135,6 @@ M.setPluginConfiguration = function(args) state.AUTH_TOKEN = auth_token or os.getenv("GITLAB_TOKEN") 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 error("Missing authentication token for Gitlab") end