git maintenance: avoid console window in scheduled tasks on Windows

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> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Aug 9, 2023 at 16:54 UTC 0050f8e401a70b1eda9e7358b04e6d6ef3d64ab1
1 file changed +1 -1
builtin/gc.c
+1 -1
@@ -2068,7 +2068,7 @@ static int schtasks_schedule_task(const char *exec_path, enum schedule_priority
2068 "</Settings>\n"
2069 "<Actions Context=\"Author\">\n"
2070 "<Exec>\n"
2071 - "<Command>\"%s\\git.exe\"</Command>\n"
2071 + "<Command>\"%s\\headless-git.exe\"</Command>\n"
2072 "<Arguments>--exec-path=\"%s\" for-each-repo --config=maintenance.repo maintenance run --schedule=%s</Arguments>\n"
2073 "</Exec>\n"
2074 "</Actions>\n"