From 4f2e0ab32036025ed2d1fa60192c1e169365689c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 19 Nov 2022 22:48:36 +0300 Subject: [PATCH] fix(git): apply a workaround for git safe directory --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1410a2c..121e69f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,9 +4,6 @@ set -uxo pipefail # Avoid file expansion when passing parameters like with '*' set -o noglob -# Disable safe directory checks -git config --global --add safe.directory '*' - OUTPUT=${OUTPUT:="git-cliff/CHANGELOG.md"} # Create the output directory @@ -16,6 +13,9 @@ mkdir -p "$(dirname $OUTPUT)" args=$(echo "$@" | xargs) # Execute git-cliff +cp -r . /tmp/gitdir +mv /tmp/gitdir app +cd app GIT_CLIFF_OUTPUT="$OUTPUT" git-cliff $args exit_code=$?