Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .githooks/post-checkout
Original file line number Diff line number Diff line change
@@ -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
Loading