[script_manager] handle the case where no branches are detected

This commit is contained in:
Bill Ferguson
2021-07-02 21:13:33 -04:00
parent 9386a08af0
commit 8f314059e4

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