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

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*
Previous: Johannes Schindelin
Message 3 of 3 in “Fetching a tree from a remote server”
  1. Daniel BarkalowMay 4, 2006
  2. Johannes SchindelinMay 4, 2006
  3. Daniel BarkalowMay 4, 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.