pull/109/head
Mr Chen 7 years ago
parent 6cc9ebd214
commit a492d91421
  1. 3
      plugins/csvn/hook/post-commit.tpl
  2. 1
      plugins/csvn/index.py

@ -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

@ -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)

Loading…
Cancel
Save