Re: A few "linked checkout" niggles

2015-07-17 Thread Eric Sunshine
On Fri, Jul 17, 2015 at 11:19 AM, Junio C Hamano wrote: > Duy Nguyen writes: > >> On Fri, Jul 17, 2015 at 7:27 PM, Michael J Gruber >> wrote: >>> Two more observations: >>> >>> $ git worktree add /tmp/gitwt >>> Enter /tmp/gitwt (identifier gitwt) >>> Switched to a new branch 'gitwt' >>> >>> Now

Re: A few "linked checkout" niggles

2015-07-17 Thread Eric Sunshine
On Fri, Jul 17, 2015 at 8:49 AM, Duy Nguyen wrote: > On Fri, Jul 17, 2015 at 7:27 PM, Michael J Gruber > wrote: >> Two more observations: >> >> $ git worktree add /tmp/gitwt >> Enter /tmp/gitwt (identifier gitwt) >> Switched to a new branch 'gitwt' >> >> Now I'm in /tmp/gitwt at branch gitwt. Rig

Re: A few "linked checkout" niggles

2015-07-17 Thread Junio C Hamano
Duy Nguyen writes: > On Fri, Jul 17, 2015 at 7:27 PM, Michael J Gruber > wrote: >> Two more observations: >> >> $ git worktree add /tmp/gitwt >> Enter /tmp/gitwt (identifier gitwt) >> Switched to a new branch 'gitwt' >> >> Now I'm in /tmp/gitwt at branch gitwt. Right? No. I'm in the original wd

Re: A few "linked checkout" niggles

2015-07-17 Thread Duy Nguyen
On Fri, Jul 17, 2015 at 7:27 PM, Michael J Gruber wrote: > Two more observations: > > $ git worktree add /tmp/gitwt > Enter /tmp/gitwt (identifier gitwt) > Switched to a new branch 'gitwt' > > Now I'm in /tmp/gitwt at branch gitwt. Right? No. I'm in the original wd > at the original branch. > > So

Re: A few "linked checkout" niggles

2015-07-17 Thread Michael J Gruber
Two more observations: $ git worktree add /tmp/gitwt Enter /tmp/gitwt (identifier gitwt) Switched to a new branch 'gitwt' Now I'm in /tmp/gitwt at branch gitwt. Right? No. I'm in the original wd at the original branch. So either we cd to the new location or quelch these messages or add a message

Re: A few "linked checkout" niggles

2015-07-16 Thread Eric Sunshine
On Thu, Jul 16, 2015 at 7:13 PM, Duy Nguyen wrote: > On Fri, Jul 17, 2015 at 3:39 AM, Junio C Hamano wrote: >> Also in a linked checkout of git.git itself, t5601.21 seems to fail >> with: >> >> fatal: Not a git repository: /home/gitster/w/src/.git/worktrees/rerere >> not ok 21 - clone respects gl

Re: A few "linked checkout" niggles

2015-07-16 Thread Duy Nguyen
On Fri, Jul 17, 2015 at 3:39 AM, Junio C Hamano wrote: > Also in a linked checkout of git.git itself, t5601.21 seems to fail > with: > > fatal: Not a git repository: /home/gitster/w/src/.git/worktrees/rerere > not ok 21 - clone respects global branch.autosetuprebase > # > # ( > #

Re: A few "linked checkout" niggles

2015-07-16 Thread Junio C Hamano
Also in a linked checkout of git.git itself, t5601.21 seems to fail with: fatal: Not a git repository: /home/gitster/w/src/.git/worktrees/rerere not ok 21 - clone respects global branch.autosetuprebase # # ( # test_config="$HOME/.gitconfig" && #

Re: A few "linked checkout" niggles

2015-07-15 Thread Eric Sunshine
On Thu, Jul 16, 2015 at 1:24 AM, Duy Nguyen wrote: > On Thu, Jul 16, 2015 at 6:13 AM, Junio C Hamano wrote: >> I've tried to set up a non-bare clone of git.git at ~/w/src and >> attached one of its branches to a separate work tree at ~/w/rerere >> >> ~/w/src$ git worktree add ../rerere jc/rerere

Re: A few "linked checkout" niggles

2015-07-15 Thread Duy Nguyen
On Thu, Jul 16, 2015 at 6:13 AM, Junio C Hamano wrote: > I've tried to set up a non-bare clone of git.git at ~/w/src and > attached one of its branches to a separate work tree at ~/w/rerere > > ~/w/src$ git worktree add ../rerere jc/rerere > > Then I tried the "multiple checkout not allowed". > >

A few "linked checkout" niggles

2015-07-15 Thread Junio C Hamano
I've tried to set up a non-bare clone of git.git at ~/w/src and attached one of its branches to a separate work tree at ~/w/rerere ~/w/src$ git worktree add ../rerere jc/rerere Then I tried the "multiple checkout not allowed". ~/w/src$ git checkout jc/rerere fatal: 'jc/rerere' is already chec