threads / discuss / 4047

Fetching a tree from a remote server

Subject: Fetching a tree from a remote server

## tl;dr

3 messages between May 4, 2006 and May 4, 2006.

replies: 2people: 2as markdown or json

Daniel Barkalow· May 4, 2006, 00:41 UTC · lore

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· May 4, 2006, 00:48 UTC · re: Daniel Barkalow · lore

Re: Fetching a tree from a remote server

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· May 4, 2006, 01:08 UTC · re: Johannes Schindelin · lore

Re: Fetching a tree from a remote server

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*

← back to recent threads