bliss

KISS in Lua
git clone git://bvnf.space/bliss.git
Log | Files | Refs | README | LICENSE

commit 2bd8f461812c57facc80a175eafa3e09a5a4e382
parent 7dd9c398cbc4f751c6d9d786556f87838a3535c1
Author: phoebos <ben@bvnf.space>
Date:   Wed, 18 Dec 2024 11:12:45 +0000

pkg.resolve_git: ensure all branch/commit information is removed

Diffstat:
Mbliss/pkg.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bliss/pkg.lua b/bliss/pkg.lua @@ -82,7 +82,7 @@ end local function resolve_git(pkg, source, env) local fp = string.match(source[1], "/([^/]+)$") if not fp then utils.die(pkg, "can't parse source '"..source[1].."'") end - fp = string.match(fp, "(.*)[@#]") or fp -- this follows kiss, but should it be (.-) (ie. shortest match)? + fp = string.match(fp, "(.-)[@#]") or fp -- NB: kiss does the longest match (.*) instead. return env.src_dir .. "/" .. pkg .. "/" .. (source[2] and source[2] .. "/" or "") .. fp .. "/" end