From a492d91421c0f905542c2b8121b02cb724579c1f Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 13 Dec 2018 18:20:27 +0800 Subject: [PATCH] update --- plugins/csvn/hook/post-commit.tpl | 3 ++- plugins/csvn/index.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/csvn/hook/post-commit.tpl b/plugins/csvn/hook/post-commit.tpl index fe305794e..960fa5e1b 100755 --- a/plugins/csvn/hook/post-commit.tpl +++ b/plugins/csvn/hook/post-commit.tpl @@ -8,4 +8,5 @@ TXN_NAME="$3" REPOS_NAME=${REPOS##*/} -PRJOECT_DIR={$PRJOECT_DIR}/wwwroot/$REPOS_NAME +WEB_DIR={$PRJOECT_DIR}/wwwroot/$REPOS_NAME +SVN_PATH=http://127.0.0.1:{$PORT}/svn/$REPOS_NAME diff --git a/plugins/csvn/index.py b/plugins/csvn/index.py index a21a64652..ef6937bb2 100755 --- a/plugins/csvn/index.py +++ b/plugins/csvn/index.py @@ -524,6 +524,7 @@ def projectScriptLoad(): content = public.readFile(commit_tpl) content = content.replace('{$PRJOECT_DIR}', public.getRootDir()) + content = content.replace('{$PORT}', getHttpPort()) public.writeFile(pro_commit_file, content) public.execShell('chmod 777 ' + pro_commit_file)