summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-11-05 16:04:52 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-11-05 16:04:52 +0000
commit7d3790a7e0bb5ad3e496735292a92e43af63e2fc (patch)
tree49b5d0f075a62bfc78f67f51dd9231d77e00b20e
parent4d3ec1e658a814f3dcc0ec81f61d27447c501a25 (diff)
downloadgitano-7d3790a7e0bb5ad3e496735292a92e43af63e2fc.tar.bz2
Fix up set_head set_description and set_readme to thread committer
-rw-r--r--lib/gitano/command.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitano/command.lua b/lib/gitano/command.lua
index 2f9049f..1b1d48b 100644
--- a/lib/gitano/command.lua
+++ b/lib/gitano/command.lua
@@ -373,7 +373,7 @@ local function builtin_set_head_prep(conf, repo, cmdline, context)
end
local function builtin_set_head_run(conf, repo, cmdline, env)
- local ok, msg = repo:set_head(cmdline[3])
+ local ok, msg = repo:set_head(cmdline[3], env.GITANO_USER, env.GITANO_ORIG_USER)
if not ok then
log.fatal(msg)
end
@@ -419,7 +419,7 @@ local function builtin_set_description_prep(conf, repo, cmdline, context)
end
local function builtin_set_description_run(conf, repo, cmdline, env)
- local ok, msg = repo:set_description(cmdline[3])
+ local ok, msg = repo:set_description(cmdline[3], env.GITANO_USER, env.GITANO_ORIG_USER)
if not ok then
log.fatal(msg)
end
@@ -682,7 +682,7 @@ local function builtin_readme_run(config, repo, cmdline, env)
end
else
local readme = sio.stdin:read("*a")
- repo:set_readme(readme)
+ repo:set_readme(readme, env.GITANO_USER, env.GITANO_ORIG_USER)
end
return "exit", 0
end