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

Re: GIT_OBJECT_DIRECTORY

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 18, 2006, 15:25 UTC
Message-ID
<Pine.LNX.4.64.0604180822470.3701@g5.osdl.org>
In-Reply-To
<20060418133847.GC4720@wohnheim.fh-wedel.de>
On Tue, 18 Apr 2006, Jörn Engel wrote:
Show 6 quoted lines
> 
> $ git clone rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git foo
> [ stored >200M of data under foo/.git/objects ]
> 
> The above looks as if new objects are not stored under
> /home/joern/.git, as specified by GIT_OBJECT_DIRECTORY.

The "rsync" protocol really doesn't honor git rules. It's basically just a big recursive copy, and it will copy things from the place they were before.

I suspect that if you had used a real git-aware protocol instead, you'd have been fine, ie

	git clone git://git.kernel.org/... foo/

would probably work. (I say "probably", because very few people likely use GIT_OBJECT_DIRECTORY, and it makes a lot less sense with pack-files than it did originally, so it's not getting any testing).

		Linus
Previous: Jörn EngelNext: Jörn Engel
Message 2 of 12 in “GIT_OBJECT_DIRECTORY”
  1. Jörn EngelApr 18, 2006
  2. Linus TorvaldsApr 18, 2006
  3. Jörn EngelApr 18, 2006
  4. Sam RavnborgApr 18, 2006
  5. Linus TorvaldsApr 18, 2006
  6. Jörn EngelApr 18, 2006
  7. Linus TorvaldsApr 18, 2006
  8. Jörn EngelApr 18, 2006
  9. H. Peter AnvinApr 19, 2006
  10. Junio C HamanoApr 19, 2006
  11. Junio C HamanoApr 18, 2006
  12. Jörn EngelApr 18, 2006

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.