From 17a3372ec9788955ed77dabf16221e580337098e Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 22 Apr 2024 11:03:05 -0700 Subject: [PATCH] Get rid of auto branch detection --- lua/config/util.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lua/config/util.lua b/lua/config/util.lua index f74efab..0a0b4c9 100644 --- a/lua/config/util.lua +++ b/lua/config/util.lua @@ -13,13 +13,6 @@ local function invoke(args) end local function git_parent_branch(parent_branch) - for _, branch in ipairs({'master', 'main'}) do - local output = invoke({'git', 'rev-parse', '--verify', branch}) - if not string.find(output, 'fatal') then - parent_branch = branch - end - end - if parent_branch ~= '' then return parent_branch end