git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Aug 9, 2023, 16:54 UTC
Message-ID
<d27cda48a5910940a1ca2ed0f04fdf80bb325c28.1691600087.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1570.git.1691600087.gitgitgadget@gmail.com>
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 --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"
-- 
gitgitgadget
Previous: Derrick Stolee via GitGitGadgetNext: Johannes Schindelin via GitGitGadget
Message 2 of 3 in “maintenance: do not open console on Windows”
  1. 0/2 maintenance: do not open console on WindowsDerrick Stolee via GitGitGadget, Aug 9, 2023
  2. 2/2 git maintenance: avoid console window in scheduled tasks on WindowsJohannes Schindelin via GitGitGadget, Aug 9, 2023
  3. 1/2 win32: add a helper to run `git.exe` without a foreground windowJohannes Schindelin via GitGitGadget, Aug 9, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.