diff --git a/scripts/githooks/commit-msg b/scripts/githooks/commit-msg index 66b40d016..bf00bfc31 100644 --- a/scripts/githooks/commit-msg +++ b/scripts/githooks/commit-msg @@ -56,7 +56,8 @@ test "" = "$(grep '^Signed-off-by: ' "$1" | } # TODO: go-gitlint dir set -GITLINT_DIR="./_output/tools/go-gitlint" +OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/../.. +GITLINT_DIR="$OPENIM_ROOT/_output/tools/go-gitlint" $GITLINT_DIR \ --msg-file=$1 \ diff --git a/scripts/lib/init.sh b/scripts/lib/init.sh index edaca357d..294696087 100755 --- a/scripts/lib/init.sh +++ b/scripts/lib/init.sh @@ -19,7 +19,6 @@ set +o nounset set -o pipefail # Unset CDPATH so that path interpolation can work correctly -# https://github.com/iamrnetes/iamrnetes/issues/52255 unset CDPATH # Default use go modules