if (not rurl) then
e2lib.abort("git_init_db1(): missing parameter")
end
- local e = err.new("running git_init_db")
+ local e = err.new("git_init_db failed")
local rc, re
local u, re = url.parse(rurl)
if not u then
elseif u.transport == "file" then
cmd = gitcmd
else
- return false, e:append("git_init_db1: transport not supported: %s", u.transport)
+ return false, err.new("git_init_db: can not initialize git repository"..
+ " on this transport: %s", u.transport)
end
rc = e2lib.callcmd_capture(cmd)
if rc ~= 0 then
return false, e:cat(re)
end
end
- rc = generic_git.git_init_db(c, rserver, rlocation)
+ rc, re = generic_git.git_init_db(c, rserver, rlocation)
if not rc then
- return false, e:cat("can't initialize remote git repository")
+ return false, e:cat(re)
end
return true, nil
end