diff options
| author | ruki <[email protected]> | 2024-01-11 00:43:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-11 00:43:24 +0800 |
| commit | 8db99f3c25f137b46444e4e4b12d874d3d2f8978 (patch) | |
| tree | 80397f5230af0814fd9a716ab518f3b9d674e9a8 /xmake/modules/devel/git/lastcommit.lua | |
| parent | d17d638df1f626f02a60ca6f2c284c217a63fa74 (diff) | |
fix git.branch
Diffstat (limited to 'xmake/modules/devel/git/lastcommit.lua')
| -rw-r--r-- | xmake/modules/devel/git/lastcommit.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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!") |
