diff options
author | Hisham <hisham@gobolinux.org> | 2016-10-19 15:18:37 -0400 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-10-19 15:18:37 -0400 |
commit | 02dd4e1301ea11d60be2e36d66392d367c8e2c5b (patch) | |
tree | 940f6c5c8f55ebc80e9dcafb3ddcbbb05eca54f9 /src/luarocks/fetch/git.lua | |
parent | e1197dc9e029cb32b91c99c8cc26794ab4ab3cc1 (diff) | |
download | luarocks-02dd4e1301ea11d60be2e36d66392d367c8e2c5b.tar.gz luarocks-02dd4e1301ea11d60be2e36d66392d367c8e2c5b.tar.bz2 luarocks-02dd4e1301ea11d60be2e36d66392d367c8e2c5b.zip |
Add format-check function in rockspec table.
This avoids sprinkling the luarocks.deps dependency everywhere.
Diffstat (limited to '')
-rw-r--r-- | src/luarocks/fetch/git.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fetch/git.lua b/src/luarocks/fetch/git.lua index eaba7ffd..72da4974 100644 --- a/src/luarocks/fetch/git.lua +++ b/src/luarocks/fetch/git.lua | |||
@@ -110,7 +110,7 @@ function git.get_sources(rockspec, extract, dest_dir, depth) | |||
110 | end | 110 | end |
111 | 111 | ||
112 | -- Fetching git submodules is supported only when rockspec format is >= 3.0. | 112 | -- Fetching git submodules is supported only when rockspec format is >= 3.0. |
113 | if deps.format_is_at_least(rockspec, "3.0") then | 113 | if rockspec:format_is_at_least("3.0") then |
114 | command = {fs.Q(git_cmd), "submodule", "update", "--init", "--recursive"} | 114 | command = {fs.Q(git_cmd), "submodule", "update", "--init", "--recursive"} |
115 | 115 | ||
116 | if git_supports_shallow_submodules(git_cmd) then | 116 | if git_supports_shallow_submodules(git_cmd) then |