diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/write_rockspec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/write_rockspec.lua b/src/luarocks/write_rockspec.lua index db0bcd44..68547cdf 100644 --- a/src/luarocks/write_rockspec.lua +++ b/src/luarocks/write_rockspec.lua | |||
| @@ -180,9 +180,9 @@ function run(...) | |||
| 180 | if name and not version then | 180 | if name and not version then |
| 181 | local protocol, path = dir.split_url(name) | 181 | local protocol, path = dir.split_url(name) |
| 182 | if not fetch.is_basic_protocol(protocol) then | 182 | if not fetch.is_basic_protocol(protocol) then |
| 183 | name = dir.base_name(name):gsub("%.[^.]+$", "") | ||
| 184 | version = "scm" | ||
| 185 | local_dir = name | 183 | local_dir = name |
| 184 | version = "scm" | ||
| 185 | name = dir.base_name(name):gsub("%.[^.]+$", "") | ||
| 186 | else | 186 | else |
| 187 | return nil, "Missing name and version arguments. "..util.see_help("write_rockspec") | 187 | return nil, "Missing name and version arguments. "..util.see_help("write_rockspec") |
| 188 | end | 188 | end |
