aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Brown <themagnificentmrb@gmail.com>2024-01-17 20:54:28 -0800
committerGarrett Brown <themagnificentmrb@gmail.com>2024-01-22 04:46:24 -0800
commit02db1a6c747853d6ed527a21f1b8a4a12c465359 (patch)
treea7a5a2456c8e2390456e1d3b304a1e17edf7bb21
parentec5fff32835210b9c8bc1b74ab57681ca895d7b6 (diff)
Fix the scourge of game add-on failures
Failure occurred when running 'git clean' while gpg-agent.exe was daemonized.
-rw-r--r--tools/buildsteps/windows/prepare-env.bat3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/buildsteps/windows/prepare-env.bat b/tools/buildsteps/windows/prepare-env.bat
index c739726bf2..c26ce791d5 100644
--- a/tools/buildsteps/windows/prepare-env.bat
+++ b/tools/buildsteps/windows/prepare-env.bat
@@ -13,6 +13,9 @@ IF EXIST %WORKSPACE%\project\Win32BuildSetup\BUILD_WIN32 rmdir %WORKSPACE%\proje
rem also clean 'build' dir used to build ffmpeg as git clean has trouble to remove some times
IF EXIST %WORKSPACE%\project\BuildDependencies\build rmdir %WORKSPACE%\project\BuildDependencies\build /S /Q
+rem daemonized gpg-agent blocks mingw from being cleaned with git
+TASKKILL /IM "gpg-agent.exe" /F >nul 2>&1
+
rem we assume git in path as this is a requirement
rem git clean the untracked files and directories
rem but keep the downloaded dependencies