Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/csvn/hook/commit.tpl

20 lines
375 B

7 years ago
#!/bin/bash
REPOS="$1"
REV="$2"
TXN_NAME="$3"
WEB_PATH={$PROJECT_DIR}/wwwroot/$REPOS_NAME
SVN_PATH=http://127.0.0.1:{$PORT}/svn/$REPOS
if [ ! -d $WEB_PATH ]; then
7 years ago
svn co $SVN_PATH $WEB_PATH \
--username={$CSVN_USER} \
--password={$CSVN_PWD} \
--no-auth-cache \
--non-interactive
7 years ago
fi
cd $WEB_PATH && svn update --username={$CSVN_USER} --password={$CSVN_PWD}