From: Markus Gerstel <2025@uxp.de>
To: git@vger.kernel.org
Subject: 'git gc auto' didn't trigger on large reflog
Date: Sat, 22 Feb 2025 22:50:25 +0000 [thread overview]
Message-ID: <e650f4e4-e267-4f1f-bb3a-c71b1fe0b276@uxp.de> (raw)
Hi everyone,
I was looking on a machine that does not normally get any attention. On
this machine a daily cronjob has been running
git checkout -q master && git fetch && git reset --hard
origin/master && git gc --auto
for 6 years. The git directory now contains a .git/logs/HEAD file of
180MB with 823921 lines.
The repo config contains
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
and the system git version is 2.36.6.
I can't change the git version -or install my own one- so I can't tell
if this has been fixed since.
A manual git gc fixed everything, so I amended the cronjob to just do
that instead.
I was just slightly surprised (and amused) because I expected 'git gc
--auto' to pick this up, so I thought I'd share this with you.
Thanks
-Markus
next reply other threads:[~2025-02-22 23:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-22 22:50 Markus Gerstel [this message]
2025-02-24 10:56 ` 'git gc auto' didn't trigger on large reflog Patrick Steinhardt
2025-02-24 16:43 ` Junio C Hamano
2025-02-26 11:39 ` Patrick Steinhardt
2025-02-26 16:10 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e650f4e4-e267-4f1f-bb3a-c71b1fe0b276@uxp.de \
--to=2025@uxp.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.