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

Re: git clone downloads objects that are in GIT_OBJECT_DIRECTORY

From
sean <seanlkml@sympatico.ca>
Date
Mar 6, 2006, 03:31 UTC
Message-ID
<BAYC1-PASMTP05F90E7F1807F05A274507AEE90@CEZ.ICE>
In-Reply-To
<20060306025702.GH25790@spearce.org>

On Sun, 5 Mar 2006 21:57:02 -0500 Shawn Pearce <spearce@spearce.org> wrote:

Show 7 quoted lines
> It might be nicer if the user could place a list of locally (here
> locally being possibly remote but closer network-wise) available
> repositories which should be considered as sources for faster
> cloning.  When cloning a remote repository git-clone would try to
> examine each of the designated repositories to see if any of them
> have commits in common with the remote; if so clone off that and
> then pull from the remote, but designating the remote as `origin'.

It is already easy to start from a similar repo (eg. locally cloned) if you wish to conserve bandwidth.

However, it might be nice to have a command that allows you to change origin information for a repo without needing to know git internals; maybe something like:

$ git set-origin <URL>
Or maybe better:
$ git set-remote --pull master:origin origin <URL>
Sean
Previous: Shawn PearceNext: Johannes Schindelin
Message 5 of 6 in “git clone downloads objects that are in GIT_OBJECT_DIRECTORY”
  1. Benjamin LaHaiseMar 6, 2006
  2. Shawn PearceMar 6, 2006
  3. Junio C HamanoMar 6, 2006
  4. Shawn PearceMar 6, 2006
  5. seanMar 6, 2006
  6. Johannes SchindelinMar 6, 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.