diff options
| author | ruki <[email protected]> | 2021-07-23 07:29:24 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-23 07:29:24 +0800 |
| commit | f450a0985d8a9fd937858ff8a1b799f51307335a (patch) | |
| tree | c53f1b7d66e3d9fba72be8273473515e5c2e534c | |
| parent | 17b4d1f0f73ea69b47cf56be00f94dfa188c5b36 (diff) | |
Update download.lua
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/download.lua b/xmake/modules/private/action/require/impl/actions/download.lua index abc017a70..48c77d725 100644 --- a/xmake/modules/private/action/require/impl/actions/download.lua +++ b/xmake/modules/private/action/require/impl/actions/download.lua @@ -83,7 +83,7 @@ function _checkout(package, url, sourcedir, url_alias) git.checkout(revision, {repodir = packagedir}) -- update all submodules - if os.isdir(".gitmodules") then + if os.isfile(".gitmodules") then git.submodule.update({init = true, recursive = true, longpaths = longpaths, repodir = packagedir}) end end |
