Skip to content

Commit 4a36556

Browse files
Merge pull request #23 from step-security/auto-cherry-pick
chore: Cherry-picked changes from upstream
2 parents 4aa8e9f + db0affe commit 4a36556

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

dist/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ _main() {
4545

4646
_check_if_is_git_repository
4747

48-
_check_if_repository_is_in_detached_state
48+
# _check_if_repository_is_in_detached_state
4949

5050
if "$INPUT_CREATE_GIT_TAG_ONLY"; then
5151
_log "debug" "Create git tag only";

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ _main() {
4545

4646
_check_if_is_git_repository
4747

48-
_check_if_repository_is_in_detached_state
48+
# _check_if_repository_is_in_detached_state
4949

5050
if "$INPUT_CREATE_GIT_TAG_ONLY"; then
5151
_log "debug" "Create git tag only";

tests/git-auto-commit.bats

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,7 @@ END
10981098
}
10991099

11001100
@test "It detects if the repository is in a detached state and exits with an error" {
1101+
skip
11011102
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-{1,2,3}.txt
11021103

11031104
run git_auto_commit

0 commit comments

Comments
 (0)