From 98d9af920fb8052b47fdf7cbf2affa5617b6f089 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Wed, 12 Mar 2014 10:09:44 +0000 Subject: RSYNC: Update rsync plugin to fix hiccoughs This removes the rsync path reporting since I'm now confident it works, also we fix a bug in the lace running so that it tests against the right repo and we hide the rsync command since it's not a normal user command. Signed-off-by: Daniel Silverstone --- plugins/rsync.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/rsync.lua b/plugins/rsync.lua index da4bdb7..310fe59 100644 --- a/plugins/rsync.lua +++ b/plugins/rsync.lua @@ -67,9 +67,6 @@ local function rsync_detect_repo(config, cmdline) gitano.util.mkdir_p(repo:fs_path() .. "/rsync") -- And give back the repo for ruleset running and the cmdline for the rsync - - gitano.log.error(cmdline[#cmdline]) - return repo, cmdline end @@ -91,7 +88,7 @@ local function rsync_prep(config, repo, cmdline, context) else context.operation = "write" end - return config.repo:run_lace(context) + return repo:run_lace(context) end local function rsync_run(config, repo, cmdline, env) @@ -104,5 +101,5 @@ end assert(gitano.command.register("rsync", rsync_short_help, rsync_helptext, rsync_validate, rsync_prep, rsync_run, - true, false, false, + true, true, false, rsync_detect_repo)) -- cgit v1.2.1