Get rid of auto branch detection
This commit is contained in:
parent
4048b8f59b
commit
17a3372ec9
@ -13,13 +13,6 @@ local function invoke(args)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function git_parent_branch(parent_branch)
|
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
|
if parent_branch ~= '' then
|
||||||
return parent_branch
|
return parent_branch
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user