From 33b203d92a47ab2370a88ce03d9825cdb52cc98c Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Wed, 11 Jun 2025 13:22:17 +0200 Subject: [PATCH] Disable Check if Repo is in Detached State Fixes #378 --- entrypoint.sh | 2 +- tests/git-auto-commit.bats | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 78cb551..b55b351 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -45,7 +45,7 @@ _main() { _check_if_is_git_repository - _check_if_repository_is_in_detached_state + # _check_if_repository_is_in_detached_state if "$INPUT_CREATE_GIT_TAG_ONLY"; then _log "debug" "Create git tag only"; diff --git a/tests/git-auto-commit.bats b/tests/git-auto-commit.bats index bb90822..c64bf19 100644 --- a/tests/git-auto-commit.bats +++ b/tests/git-auto-commit.bats @@ -1098,6 +1098,7 @@ END } @test "It detects if the repository is in a detached state and exits with an error" { + skip touch "${FAKE_LOCAL_REPOSITORY}"/new-file-{1,2,3}.txt run git_auto_commit