Re: FETCH_HEAD files and mirrored repos
- From
Konstantin Ryabitsev <konstantin@linuxfoundation.org>
- Date
- Jul 12, 2020, 20:25 UTC
- Message-ID
- <20200712202502.x4p2c7rf6ctflt5g@chatter.i7.local>
- In-Reply-To
- <xmqqblkkr63u.fsf@gitster.c.googlers.com>
On Sun, Jul 12, 2020 at 10:33:09AM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> >> So, unless your script depends on the presence and/or the contents > >> of FETCH_HEAD, you can safely remove it. > > > > Excellent, that just saved me 20G per each mirror. :) > > Meaning that minimum 4k per file adds up that much due to 5 millions > of repositories, or something?
Gosh, no. Only 28,000 repositories, with many FETCH_HEAD files being a few MB in size.
I also discovered that symlinking FETCH_HEAD to /dev/null works as well and thus saves a few IO cycles.
-K