From 43c1a5925baf3e4003ca4bf070910b6615f5f829 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Sun, 22 May 2016 18:04:42 +0300 Subject: Fix behaviour of `luarocks write-rockspec` with two args It accepts name, version and location. If two are given, the first one is considered the name and the second the location, but the version is also set to the location. Reset it to allow guessing it or using default (scm). --- src/luarocks/write_rockspec.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/luarocks/write_rockspec.lua b/src/luarocks/write_rockspec.lua index 972562c3..26a65808 100644 --- a/src/luarocks/write_rockspec.lua +++ b/src/luarocks/write_rockspec.lua @@ -208,6 +208,7 @@ function write_rockspec.run(...) name = nil elseif not url_or_dir then url_or_dir = version + version = nil end if flags["tag"] then -- cgit v1.2.3-55-g6feb