diff --git a/contrib/lua/hooks.lua.in b/contrib/lua/hooks.lua.in index 295f781f1..0b24a33c2 100644 --- a/contrib/lua/hooks.lua.in +++ b/contrib/lua/hooks.lua.in @@ -225,7 +225,7 @@ function cvsweb (base, project, url) string.gsub(url, "([^%s]+)", function (w) table.insert(t, w) end) file, old, new = t[1], t[2], t[3] - if t[4] then error('this smartprefix takes only two to three arguments') return nil end + if t[4] then error('this smartprefix takes only one to three arguments') return nil end if not file then error('no file given') return nil end if new then return base..project.."/"..file..".diff?r1="..old.."&r2="..new.."&f=u"