Skip to content

Commit c0bdf26

Browse files
committed
Update commit.tpl
1 parent ae3cc4b commit c0bdf26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/gogs/hook/commit.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ git config --global pull.rebase false
1616
if [ ! -d $GIT_PROJECT_DIR ];then
1717
mkdir -p $GIT_USER_DIR && cd $GIT_USER_DIR
1818
git clone $GITADDR --branch main
19-
# git clone $GITADDR
19+
if [ "$?" != "0" ];then
20+
git clone $GITADDR
21+
fi
2022
fi
2123

2224
unset GIT_DIR

0 commit comments

Comments
 (0)