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

Re: Why /var/cache/git?

From
Bron Gondwana <brong@fastmail.fm>
Date
Oct 26, 2010, 01:22 UTC
Message-ID
<20101026012224.GA3360@brong.net>
In-Reply-To
<4CC5A13F.2090702@eaglescrag.net>
On Mon, Oct 25, 2010 at 08:24:47AM -0700, J.H. wrote:
Show 24 quoted lines
> On 10/25/2010 03:30 AM, Bron Gondwana wrote:
> > (resent - correct address for git list!)
> > 
> > (Gerrit: you're CC'd as the attribution in README.Debian
> >  which in the one place I can see /var/cache/git mentioned
> >  in the docs - without a justification for why it was
> >  chosen...)
> 
> Couple of quick points:
> 
> $ grep -Ri "/var/git\|\/var\/git" *
> Documentation/git-cvsserver.txt:     export
> CVSROOT=:ext:user@server:/var/git/project.git
> 
> gitweb/README:    RewriteRule ^/var(/|/gitweb.cgi)?$	
> /cgi-bin/gitweb.cgi [QSA,E=GITWEB_PROJECTROOT:/var/git/,L,PT]
> 
> gitweb/README:Second, repositories found in /pub/scm/ and /var/git/ will
> be accesible
> 
> Are the only 3 instances where this is mentioned.  Looking at those
> quick it was probably chosen based on the fact that it's a location that
> likely exists on most machines.  Or just for explanatory reasons like
> /example/dir/project.git could be used.
I have no problem with /var/git - it's /var/cache/git that worries
me, since the FHS quite clearly says that blowing away /var/cache/*
is not a problem.  It makes sense to back up /var/lib/ on any machine,
since that's somewhere that contains application data.  We already
back up a few things from /var/lib (like /var/lib/svn for example,
at least until we finish this switchover!)
 
Bron.
Previous: J.H.Next: Drew Northup
Message 3 of 9 in “Why /var/cache/git?”
  1. Bron GondwanaOct 25, 2010
  2. J.H.Oct 25, 2010
  3. Bron GondwanaOct 26, 2010
  4. Drew NorthupOct 26, 2010
  5. Gerrit PapeOct 26, 2010
  6. Jakub NarebskiOct 26, 2010
  7. Junio C HamanoOct 26, 2010
  8. Gerrit PapeOct 28, 2010
  9. Bron GondwanaOct 26, 2010

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.