Skip to content

Commit fc0967e

Browse files
committed
fix: add safe.directory configuration for git in deployment scripts
1 parent 4bfa426 commit fc0967e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ jobs:
176176
177177
# Keep VM source scripts in sync with latest main before running any local script.
178178
if [ -d .git ]; then
179+
git config --global --add safe.directory "$DEPLOY_PATH" || true
180+
sudo git config --system --add safe.directory "$DEPLOY_PATH" || true
179181
git fetch origin
180182
git checkout main
181183
git pull --ff-only origin main

0 commit comments

Comments
 (0)