diff options
| author | ruki <[email protected]> | 2019-09-29 08:07:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-29 08:07:13 +0800 |
| commit | 07c8483607759f79cb3cfbf7351ee07cc714d8b9 (patch) | |
| tree | bbfa0bddff65cea434a08eab27e240113d1b3f0a /xmake/modules/devel/git/submodule | |
| parent | 4df867463bac4c5987441696eabbf6a1f43ea9e4 (diff) | |
load git package env
Diffstat (limited to 'xmake/modules/devel/git/submodule')
| -rw-r--r-- | xmake/modules/devel/git/submodule/update.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/modules/devel/git/submodule/update.lua b/xmake/modules/devel/git/submodule/update.lua index 403bf112d..c73880c0a 100644 --- a/xmake/modules/devel/git/submodule/update.lua +++ b/xmake/modules/devel/git/submodule/update.lua @@ -41,10 +41,7 @@ function main(opt) opt = opt or {} -- find git - local git = find_tool("git") - if not git then - return - end + local git = assert(find_tool("git"), "git not found!") -- init argv local argv = {"submodule", "update"} |
