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

Re: Running scheduled maintenance in quiet mode

From
Derrick Stolee <stolee@gmail.com>
Date
Mar 29, 2021, 19:14 UTC
Message-ID
<f5db297e-e0e6-3eff-37de-8efafe07482a@gmail.com>
In-Reply-To
<CABXAcUx0uWyk1e0UCaTwGt1VwVZkj1sV-OapSgZJOv3eS88eng@mail.gmail.com>
On 3/29/2021 12:45 PM, Clement Moyroud wrote:
Show 5 quoted lines
> Hello,
> 
> Now that Git v2.31.0 has the fix for 'git maintenance register' on
> bare repositories, I've enabled it. I'm now getting a fairly useless
> daily e-mail with a couple of hashes listed (no other info).

Thanks for your interest in the feature! Sorry this is a frustrating experience.

> I'd like to disable this e-mail and get the configuration to stick -
> changing my Crontab with either --quiet or a /dev/null redirect works,
> but the next time 'git maintenance start' is called, this will be
> rewritten.

You are right about that. We could alter the implementation of 'start', and the only downside is that you would need to rerun the command to avoid those problems.

For now, you can stick to 'git maintenance register' instead of 'start' so the crontab schedule is not overwritten.

> I could not find a 'maintenance.quiet' option (or similar) in the
> config. Is there a way to do this currently?

This could also be an interesting workaround. To be distinct from the crontab approach, it would probably be necessary to also make the `git maintenance run --auto` output quiet by default, too.

I'm on the side of modifying the crontab schedule. I'd like to hear other opinions before starting the work, though.

Thanks, -Stolee

Previous: Clement MoyroudNext: Ævar Arnfjörð Bjarmason
Message 2 of 3 in “Running scheduled maintenance in quiet mode”
  1. Clement MoyroudMar 29, 2021
  2. Derrick StoleeMar 29, 2021
  3. Ævar Arnfjörð BjarmasonMar 30, 2021

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.