Skip to content

Commit e2b2fd8

Browse files
committed
fix: refine force push detection in hook and update Postgres to 18-alpine
1 parent 66979d6 commit e2b2fd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
resource_class: large
2525
docker:
2626
- image: cimg/node:22.16
27-
- image: postgres:17-alpine
27+
- image: postgres:18-alpine
2828
environment:
2929
POSTGRES_DB: api_test
3030
POSTGRES_PASSWORD: 12345

.claude/hooks/prevent-force-push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [[ -z "$cmd" ]]; then
1010
exit 0
1111
fi
1212

13-
if [[ "$cmd" =~ git\ push.*(-f|--force) ]]; then
13+
if [[ "$cmd" =~ git\ push.*\ (-f|--force)($|\ ) ]]; then
1414
echo "Force push is not allowed" >&2
1515
exit 2
1616
fi

0 commit comments

Comments
 (0)