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

Re: git clone does not work with GIT_OBJECT_DIRECTORY set

From
Junio C Hamano <junkio@cox.net>
Date
Mar 6, 2006, 01:33 UTC
Message-ID
<7vmzg4cq6y.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060306012115.GG20768@kvack.org>
Benjamin LaHaise <bcrl@kvack.org> writes:
Show 8 quoted lines
> And another bug (linux-2.6.git was created with a clone of git://.../ 
> while GIT_OBJECT_DIRECTORY was set):
>
> $ git clone linux-2.6.git bootcache.git
> fatal: '/home/bcrl/linux-2.6.git/.git': unable to chdir or not a git archive
> fatal: unexpected EOF
> clone-pack from '/home/bcrl/linux-2.6.git/.git' failed.
> $ 

Please try it without GIT_OBJECT_DIRECTORY and see it works correctly (I think it should). If that is the case, maybe git-clone should explicitly unset GIT_OBJECT_DIRECTORY.

Previous: Benjamin LaHaiseNext: Benjamin LaHaise
Message 2 of 5 in “git clone does not work with GIT_OBJECT_DIRECTORY set”
  1. Benjamin LaHaiseMar 6, 2006
  2. Junio C HamanoMar 6, 2006
  3. Benjamin LaHaiseMar 6, 2006
  4. Junio C HamanoMar 7, 2006
  5. Benjamin LaHaiseMar 7, 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.