Re: Fetching a tree from a remote server
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- May 4, 2006, 01:08 UTC
- Message-ID
- <Pine.LNX.4.64.0605032054170.6713@iabervon.org>
- In-Reply-To
- <Pine.LNX.4.63.0605040247460.24675@wbgn013.biozentrum.uni-wuerzburg.de>
On Thu, 4 May 2006, Johannes Schindelin wrote:
Show 9 quoted lines
> Hi, > > On Wed, 3 May 2006, Daniel Barkalow wrote: > > > Is there something to do the opposite of git clone -n? That is, I want to > > fill a directory with a treeish ref, and I don't care about any history or > > bookkeeping. > > Is git-tar-tree your friend or what?
The problem is that I'm on the build machine, and the repository is on the remote server. I suppose I could do "(ssh server GIT_DIR=/repo.git git-tar-tree HEAD) | tar -xf -", but that's not quite the most clear thing, and I'd have to split up the URLs. Also, it wouldn't work with only git: access to the repository.
(On the other hand, it does work for my actual application, I'm doing it from a Makefile, and it's blazingly fast, so I guess I'm set.)
-Daniel *This .sig left intentionally blank*