diff options
| author | ruki <[email protected]> | 2021-07-10 00:56:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-07-10 00:56:40 +0800 |
| commit | 4d62362c12ec2c3dbf387cbee561574c051d4bcf (patch) | |
| tree | b5a27c9aad307f72eead40b0f534b195283b044e | |
| parent | 0d01a974ac4ffcf85f6349dc899c4b83635a951e (diff) | |
improve to download resources
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download_resources.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/download_resources.lua b/xmake/modules/private/action/require/impl/actions/download_resources.lua index e603b3d9f..5bf1f9a46 100644 --- a/xmake/modules/private/action/require/impl/actions/download_resources.lua +++ b/xmake/modules/private/action/require/impl/actions/download_resources.lua @@ -68,7 +68,9 @@ function _checkout(package, resource_name, resource_url, resource_revision) git.checkout(resource_revision, {repodir = resourcedir}) -- update all submodules - git.submodule.update({init = true, recursive = true, longpaths = longpaths, repodir = resourcedir}) + if os.isdir(".gitmodules") then + git.submodule.update({init = true, recursive = true, longpaths = longpaths, repodir = resourcedir}) + end end -- download resources |
