diff --git a/service/hugo/container/config/deploy.sh b/service/hugo/container/config/deploy.sh index 5c0cd50..3d0034f 100755 --- a/service/hugo/container/config/deploy.sh +++ b/service/hugo/container/config/deploy.sh @@ -22,7 +22,7 @@ export GIT_SSH_COMMAND if test -d "$GIT_DIR_NAME"; then cd "$GIT_DIR_NAME" - git fetch origin "$GIT_BRANCH" && git reset --hard "$GIT_BRANCH" + git fetch origin "$GIT_BRANCH" && git reset --hard origin else git clone --depth 1 --branch "$GIT_BRANCH" -- "$GIT_REPO_URL" "$GIT_DIR_NAME" cd "$GIT_DIR_NAME"