]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git maintenance: avoid console window in scheduled tasks on Windows
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 9 Aug 2023 16:54:47 +0000 (16:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Aug 2023 20:58:15 +0000 (13:58 -0700)
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>
builtin/gc.c

index f3942188a614c9aaff25e76293675000dded7228..fa6e52ddde109e93b477aece8a79a80ae788ced8 100644 (file)
@@ -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"