summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-11-05 16:03:36 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-11-05 16:03:36 +0000
commit4d3ec1e658a814f3dcc0ec81f61d27447c501a25 (patch)
tree6a510186ae7b79e35bd2316bc246db86af4b2f49
parent7767eeb8e40468a8becab84961331466983cb30a (diff)
downloadgitano-4d3ec1e658a814f3dcc0ec81f61d27447c501a25.tar.bz2
Fix up calls to set_owner
-rw-r--r--lib/gitano/command.lua4
-rw-r--r--lib/gitano/copycommand.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitano/command.lua b/lib/gitano/command.lua
index de3e4f2..2f9049f 100644
--- a/lib/gitano/command.lua
+++ b/lib/gitano/command.lua
@@ -273,7 +273,7 @@ local function builtin_create_run(config, repo, cmdline, env)
end
local owner = cmdline[3] or env["GITANO_USER"]
log.chat("Setting repository owner to", owner)
- ok, msg = repo:set_owner(owner)
+ ok, msg = repo:set_owner(owner, env.GITANO_USER, env.GITANO_ORIG_USER)
if not ok then
log.error(msg)
return "exit", 1
@@ -331,7 +331,7 @@ end
local function builtin_set_owner_run(config, repo, cmdline, env)
local owner = cmdline[3]
log.chat("Setting repository owner to", owner)
- ok, msg = repo:set_owner(owner)
+ ok, msg = repo:set_owner(owner, env.GITANO_USER, env.GITANO_ORIG_USER)
if not ok then
log.error(msg)
return "exit", 1
diff --git a/lib/gitano/copycommand.lua b/lib/gitano/copycommand.lua
index 4f90c99..86749a4 100644
--- a/lib/gitano/copycommand.lua
+++ b/lib/gitano/copycommand.lua
@@ -81,7 +81,7 @@ local function builtin_copy_run(config, repo, cmdline, env)
local owner = env["GITANO_USER"]
log.chat("Setting repository owner to", owner)
- ok, msg = tgtrepo:set_owner(owner)
+ ok, msg = tgtrepo:set_owner(owner, env.GITANO_USER, env.GITANO_ORIG_USER)
if not ok then
log.error(msg)
return "exit", 1