From 8db99f3c25f137b46444e4e4b12d874d3d2f8978 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Jan 2024 00:43:24 +0800 Subject: fix git.branch --- xmake/modules/devel/git/lastcommit.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'xmake/modules/devel/git/lastcommit.lua') diff --git a/xmake/modules/devel/git/lastcommit.lua b/xmake/modules/devel/git/lastcommit.lua index 1ad6de1f4..02e5c71f7 100644 --- a/xmake/modules/devel/git/lastcommit.lua +++ b/xmake/modules/devel/git/lastcommit.lua @@ -38,6 +38,7 @@ import("net.proxy") -- @endcode -- function main(opt) + opt = opt or {} -- find git local git = assert(find_tool("git"), "git not found!") -- cgit v1.3.1