From d632680726b1ce4131d2905587f92e5dba4aaf07 Mon Sep 17 00:00:00 2001 From: mwpn Date: Thu, 18 Dec 2025 11:32:08 +0700 Subject: [PATCH] Fix pull.sh: tambah auto-fix untuk dubious ownership issue --- pull.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pull.sh b/pull.sh index 1b550fe..b092ac7 100644 --- a/pull.sh +++ b/pull.sh @@ -11,6 +11,13 @@ if [ ! -d ".git" ]; then exit 1 fi +# Fix dubious ownership jika perlu +REPO_PATH=$(pwd) +if ! git config --global --get-regexp "safe.directory" | grep -q "$REPO_PATH"; then + echo "🔒 Adding safe.directory untuk fix ownership issue..." + git config --global --add safe.directory "$REPO_PATH" +fi + # Cek branch saat ini CURRENT_BRANCH=$(git branch --show-current) echo "📍 Current branch: $CURRENT_BRANCH" @@ -33,4 +40,3 @@ echo "✅ Pull selesai!" echo "" echo "📊 Status:" git status --short -