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 -