diff mbox series

[2/2] git maintenance: avoid console window in scheduled tasks on Windows

Message ID d27cda48a5910940a1ca2ed0f04fdf80bb325c28.1691600087.git.gitgitgadget@gmail.com (mailing list archive)
State Accepted
Commit 0050f8e401a70b1eda9e7358b04e6d6ef3d64ab1
Headers show
Series maintenance: do not open console on Windows | expand

Commit Message

Johannes Schindelin Aug. 9, 2023, 4:54 p.m. UTC
From: Johannes Schindelin <johannes.schindelin@gmx.de>

We just introduced a helper to avoid showing a console window when the
scheduled task runs `git.exe`. Let's actually use it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
---
 builtin/gc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/builtin/gc.c b/builtin/gc.c
index 19d73067aad..5c4315f0d81 100644
--- a/builtin/gc.c
+++ b/builtin/gc.c
@@ -2068,7 +2068,7 @@  static int schtasks_schedule_task(const char *exec_path, enum schedule_priority
 	      "</Settings>\n"
 	      "<Actions Context=\"Author\">\n"
 	      "<Exec>\n"
-	      "<Command>\"%s\\git.exe\"</Command>\n"
+	      "<Command>\"%s\\headless-git.exe\"</Command>\n"
 	      "<Arguments>--exec-path=\"%s\" for-each-repo --config=maintenance.repo maintenance run --schedule=%s</Arguments>\n"
 	      "</Exec>\n"
 	      "</Actions>\n"