Merge pull request #339 from wpferguson/script_manager_no_branch_bugfix

[script_manager] handle the case where no branches are detected
This commit is contained in:
wpferguson
2021-07-02 21:14:50 -04:00
committed by GitHub

View File

@@ -880,7 +880,7 @@ if sm.executables.git and clean and
checkout_repo_branch(repo, "master")
end
end
elseif LUA_API_VER > branches[#branches] then
elseif #branches and LUA_API_VER > branches[#branches] then
log.msg(log.info, "no newer branches, staying on master")
-- stay on master
else