Re: Elegant subdirectory checkout of remote-tracking branch?

2013-03-02 Thread Jeff King
On Fri, Mar 01, 2013 at 10:22:53AM -0500, W. Trevor King wrote: > These fail because I can't use a remote tracking branch as a > source for the clone. It should be possible to do: > > $ git clone --reference . --single-branch --branch todo > git://git.kernel.org/pub/scm/git/git.git Meta > >

Re: Elegant subdirectory checkout of remote-tracking branch?

2013-03-01 Thread Junio C Hamano
"W. Trevor King" writes: > Any suggestions for an elegant solution would be appreciated :). My Meta checkout is not a submodule of anything. It is a totally independent repository and is not linked with git.git in any way. It started as an independent repository, and it still is. That it has b

Elegant subdirectory checkout of remote-tracking branch?

2013-03-01 Thread W. Trevor King
I'm trying to figure out the most efficient way to keep an up to date `todo` branch checked out in Meta [1]. I've tried a few things like: $ git submodule add -b refs/remotes/origin/todo --reference ./ -- ./ Meta and: $ git clone --single-branch --branch refs/remotes/origin/todo ./ Meta Th