diff options
| -rw-r--r-- | xmake/modules/private/action/require/impl/repository.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/repository.lua b/xmake/modules/private/action/require/impl/repository.lua index 80a69b41e..6d656ccd0 100644 --- a/xmake/modules/private/action/require/impl/repository.lua +++ b/xmake/modules/private/action/require/impl/repository.lua @@ -42,6 +42,8 @@ function _get_packagedir_from_locked_repo(packagename, locked_repo) local repodir_local if os.isdir(locked_repo.url) then repodir_local = locked_repo.url + elseif not locked_repo.commit then + repodir_local = repodir_global else repodir_local = path.join(config.directory(), "repositories", reponame) end |
