Skip to content

Commit 1a731ac

Browse files
authored
Merge pull request #20 from touchmegit1/dev
fix: add safe.directory configuration for git in deployment scripts
2 parents 2de276d + fc0967e commit 1a731ac

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)