# Fetching a tree from a remote server

3 messages from 2006-05-04 to 2006-05-04. Participants: Daniel Barkalow, Johannes Schindelin.
Thread: https://gitlist.dev/t/4047

## Daniel Barkalow, 2006-05-04 00:41

Subject: Fetching a tree from a remote server
Message-ID: <Pine.LNX.4.64.0605032026070.6713@iabervon.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0605032026070.6713%40iabervon.org

```
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. I'm doing automated builds of things stored on a slow 
machine, so I'd really benefit from not getting the history. As it is, 
it's only twice as fast as arch, when it really ought to be hundreds of 
times faster.

Also, git-archimport in 1.2.4 seems to leave master as the initial import, 
rather than either not having it or having it at the end, which is a bit 
confusing.

	-Daniel
*This .sig left intentionally blank*

```

## Johannes Schindelin, 2006-05-04 00:48

Subject: Re: Fetching a tree from a remote server
Message-ID: <Pine.LNX.4.63.0605040247460.24675@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0605040247460.24675%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <Pine.LNX.4.64.0605032026070.6713@iabervon.org>

```
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?

Ciao,
Dscho

```

## Daniel Barkalow, 2006-05-04 01:08

Subject: Re: Fetching a tree from a remote server
Message-ID: <Pine.LNX.4.64.0605032054170.6713@iabervon.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0605032054170.6713%40iabervon.org
In-Reply-To: <Pine.LNX.4.63.0605040247460.24675@wbgn013.biozentrum.uni-wuerzburg.de>

```
On Thu, 4 May 2006, Johannes Schindelin wrote:

> 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*

```
