diff --git a/update.ps1 b/update.ps1 index 81552f2..a5daa0c 100644 --- a/update.ps1 +++ b/update.ps1 @@ -26,6 +26,9 @@ if (-not (Test-Path $TokenFile)) { } $token = (Get-Content $TokenFile -Raw).Trim() +# Safe directory (necesar cand ruleaza ca SYSTEM) +git config --global --add safe.directory $RepoPath 2>$null + # Fetch remote Set-Location $RepoPath $fetchUrl = "https://gomag-vending:$token@gitea.romfast.ro/romfast/gomag-vending.git"