aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo@ubuntu.com>2013-01-29 19:04:08 +0100
committerMilo Casagrande <milo@ubuntu.com>2013-01-29 19:04:08 +0100
commitb73d49839dca960cfe2715163b8553e9d9b2f388 (patch)
treebe259ad71f8611bfd1f64718bac510981c2f36c2
parent8749acdbc42e71a522e5503b357467f1c53245bd (diff)
downloadrhodecode-config-b73d49839dca960cfe2715163b8553e9d9b2f388.tar.gz
Fixed cmd working directory.
-rw-r--r--scripts/mirror-repos5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mirror-repos b/scripts/mirror-repos
index 2345756..b75555f 100644
--- a/scripts/mirror-repos
+++ b/scripts/mirror-repos
@@ -121,8 +121,9 @@ def rescan_git_directory(api_key, api_host, user=None):
api_key_cmd = "--apikey=%s" % str(api_key)
api_host_cmd = "--apihost=%s" % api_host
- cmd_args = ["rhodecode-api", api_key_cmd, api_host_cmd, "rescan_repos"]
- execute_command(cmd_args, user=user, work_dir=LOCAL_BIN_DIR % user)
+ api_cmd = os.path.join(LOCAL_BIN_DIR % user, "rhodecode-api")
+ cmd_args = [api_cmd, api_key_cmd, api_host_cmd, "rescan_repos"]
+ execute_command(cmd_args, user=user)
def execute_command(cmd_args, as_sudo=True, user=None, work_dir=os.getcwd()):