Update commit.tpl

pull/109/head
midoks 6 years ago
parent 1ff1844bd9
commit 5bc2fa461e
  1. 5
      plugins/gogs/hook/commit.tpl

@ -7,10 +7,9 @@ GIT_USER_DIR="${GIT_SDIR}/{$USERNAME}"
GIT_PROJECT_DIR="${GIT_USER_DIR}/{$PROJECT}"
# echo $GIT_PROJECT_DIR
if [ ! -d $GIT_USER_DIR ];then
if [ ! -d $GIT_PROJECT_DIR ];then
mkdir -p $GIT_USER_DIR && cd $GIT_USER_DIR
git clone $GIT_PROJECT_DIR
exit 0
git clone $GITADDR
fi
unset GIT_DIR

Loading…
Cancel
Save