From 9f50a345b37030842195b0b36fbf2ddce47abfb0 Mon Sep 17 00:00:00 2001 From: htlee Date: Sat, 14 Feb 2026 13:06:38 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20commit-msg=20hook=20grep=20-P=EB=A5=BC?= =?UTF-8?q?=20-E=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20(macOS=20=ED=98=B8?= =?UTF-8?q?=ED=99=98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .githooks/commit-msg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.githooks/commit-msg b/.githooks/commit-msg index f08b390..ca72a3d 100755 --- a/.githooks/commit-msg +++ b/.githooks/commit-msg @@ -1,4 +1,4 @@ -#!/bin/bash +#\!/bin/bash #============================================================================== # commit-msg hook # Conventional Commits 형식 검증 (한/영 혼용 지원) @@ -26,7 +26,7 @@ PATTERN='^(feat|fix|docs|style|refactor|test|chore|ci|perf)(\([a-zA-Z0-9가-힣. FIRST_LINE=$(head -1 "$COMMIT_MSG_FILE") -if ! echo "$FIRST_LINE" | grep -qP "$PATTERN"; then +if \! echo "$FIRST_LINE" | grep -qE "$PATTERN"; then echo "" echo "╔══════════════════════════════════════════════════════════════╗" echo "║ 커밋 메시지가 Conventional Commits 형식에 맞지 않습니다 ║"