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