From 8f314059e4b3712228ef24c435af3601b66edc27 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Fri, 2 Jul 2021 21:13:33 -0400 Subject: [PATCH] [script_manager] handle the case where no branches are detected --- tools/script_manager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/script_manager.lua b/tools/script_manager.lua index 2c561c7..8f26f75 100644 --- a/tools/script_manager.lua +++ b/tools/script_manager.lua @@ -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