From ebd75388779320f1ae2c2af6392c7fe8931a32b3 Mon Sep 17 00:00:00 2001 From: cchanmi Date: Sun, 2 Aug 2026 21:12:29 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20=EB=B8=8C=EB=9E=9C=EC=B9=98=20?= =?UTF-8?q?=EC=A0=84=ED=99=98=20=EC=8B=9C=20Podfile.lock=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20=EC=9E=90=EB=8F=99=20=EA=B0=90=EC=A7=80=20=ED=9B=84?= =?UTF-8?q?=20pod=20install=20=EC=8B=A4=ED=96=89=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=ED=9B=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .githooks/post-checkout | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .githooks/post-checkout diff --git a/.githooks/post-checkout b/.githooks/post-checkout new file mode 100755 index 0000000..9b94995 --- /dev/null +++ b/.githooks/post-checkout @@ -0,0 +1,14 @@ +#!/bin/sh +# Podfile.lock이 브랜치 전환으로 바뀌었으면 pod install을 자동 실행한다. +# 활성화(팀원 각자 최초 1회): git config core.hooksPath .githooks + +prev_head=$1 +new_head=$2 +is_branch_checkout=$3 + +[ "$is_branch_checkout" = "1" ] || exit 0 + +if ! git diff --quiet "$prev_head" "$new_head" -- Podfile.lock 2>/dev/null; then + echo "Podfile.lock 변경 감지 → pod install 실행" + pod install +fi