From: Johannes Schindelin Date: Wed, 9 Aug 2023 16:54:47 +0000 (+0000) Subject: git maintenance: avoid console window in scheduled tasks on Windows X-Git-Tag: v2.42.0-rc2~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0050f8e401a70b1eda9e7358b04e6d6ef3d64ab1;p=thirdparty%2Fgit.git 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 Signed-off-by: Derrick Stolee Signed-off-by: Junio C Hamano --- diff --git a/builtin/gc.c b/builtin/gc.c index f3942188a6..fa6e52ddde 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 "\n" "\n" "\n" - "\"%s\\git.exe\"\n" + "\"%s\\headless-git.exe\"\n" "--exec-path=\"%s\" for-each-repo --config=maintenance.repo maintenance run --schedule=%s\n" "\n" "\n"