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

Re: git clone ignores GIT_ALTERNATE_OBJECT_DIRECTORIES

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 30, 2009, 20:04 UTC
Message-ID
<7vab2maqeo.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20090730175833.GV12813@osiris.978.org>
Brian Ristuccia <brian@ristuccia.com> writes:
> Is this behavior intentional for some good reason I've overlooked, or have I
> stumbled on a bug?
Most likely not a bug.

When you talk about "clone", you need to realize that there actually are two repositories (and two object databases) involved: cloned source and destination.

Which repository should GIT_ALTERNATE_OBJECT_DIRECTORIES affect?

If you are making a clone from a remote over the network, and if you already have another local repository of a related project that has necessary objects, you may want to look at

    "git clone --reference"
Previous: Brian RistucciaNext: Brian Ristuccia
Message 2 of 3 in “git clone ignores GIT_ALTERNATE_OBJECT_DIRECTORIES”
  1. Brian RistucciaJul 30, 2009
  2. Junio C HamanoJul 30, 2009
  3. Brian RistucciaJul 31, 2009

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.