diff --git a/bin/dokku-deploy b/bin/dokku-deploy index db47750..7c2fd12 100755 --- a/bin/dokku-deploy +++ b/bin/dokku-deploy @@ -89,6 +89,7 @@ if [ -n "$DEPLOY_DOCKER_IMAGE" ]; then ssh "$ssh_remote" -- git:from-image "$remote_app_name" "$DEPLOY_DOCKER_IMAGE" "$DEPLOY_USER_NAME" "$DEPLOY_USER_EMAIL" else log-info "Pushing to Dokku Host" + git config --global --add safe.directory "$PWD" # shellcheck disable=SC2086 git push $GIT_PUSH_FLAGS "$GIT_REMOTE_URL" "$commit_sha:refs/heads/$BRANCH" fi diff --git a/bin/parse-ci-commit b/bin/parse-ci-commit index 8e2cfdd..d3fed75 100755 --- a/bin/parse-ci-commit +++ b/bin/parse-ci-commit @@ -29,6 +29,7 @@ elif [ -n "$TRAVIS_COMMIT" ]; then # travisci value="$TRAVIS_COMMIT" else + git config --global --add safe.directory "$PWD" value=$(git rev-parse HEAD 2>/dev/null || true) fi