git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 'git gc auto' didn't trigger on large reflog
@ 2025-02-22 22:50 Markus Gerstel
  2025-02-24 10:56 ` Patrick Steinhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Gerstel @ 2025-02-22 22:50 UTC (permalink / raw)
  To: git

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-02-26 16:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-22 22:50 'git gc auto' didn't trigger on large reflog Markus Gerstel
2025-02-24 10:56 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).