diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2014-03-12 10:09:44 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2014-03-12 10:09:44 +0000 |
commit | 98d9af920fb8052b47fdf7cbf2affa5617b6f089 (patch) | |
tree | 0f30bb840212d10603af9a6bfb5f5804293d9418 /plugins/rsync.lua | |
parent | bac13b388c04a7af9c049c75534bc83c931e2611 (diff) | |
download | gitano-98d9af920fb8052b47fdf7cbf2affa5617b6f089.tar.gz |
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 <dsilvers@digital-scurf.org>
Diffstat (limited to 'plugins/rsync.lua')
-rw-r--r-- | plugins/rsync.lua | 7 |
1 files 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)) |