From 63d83b50046d84e611c3ecbe9a7bbb061aec78d2 Mon Sep 17 00:00:00 2001 From: chpark Date: Sat, 30 May 2026 15:27:37 +0900 Subject: [PATCH] =?UTF-8?q?fix(deploy.sh):=20git=20safe.directory=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=20=E2=80=94=20=ED=98=B8=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?uid=20=EB=B6=88=EC=9D=BC=EC=B9=98=EB=A1=9C=20git=20=EA=B1=B0?= =?UTF-8?q?=EB=B6=80=20=ED=95=B4=EC=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- scripts/deploy.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 4e8c1ef..880c699 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -6,6 +6,11 @@ set -e cd /deploy/source 2>/dev/null || cd "$HOME/momo-erp/source" +# 컨테이너 안에서 webhook 가 호출 시: 호스트 chpark(1000) 소유 디렉토리를 +# nextjs(1001) 가 git 명령으로 다룸 → git 의 "dubious ownership" 거부 회피 +git config --global --add safe.directory "$(pwd)" 2>/dev/null || true +git config --global --add safe.directory '*' 2>/dev/null || true + echo "[$(date)] git fetch + reset --hard origin/main" git fetch origin git reset --hard origin/main