Re: [PATCH] worktree: allow the main brach of a bare repository to be checked out

2016-10-13 Thread Duy Nguyen
On Thu, Oct 13, 2016 at 1:50 AM, Junio C Hamano wrote: > Junio C Hamano writes: > >> Dennis Kaarsemaker writes: >> >>> OK, so here it is as a proper patch. > > Here is what I queued. Duy, what do you think? It seems OK to me. Ack.

Re: [PATCH] worktree: allow the main brach of a bare repository to be checked out

2016-10-12 Thread Junio C Hamano
Junio C Hamano writes: > Dennis Kaarsemaker writes: > >> OK, so here it is as a proper patch. Here is what I queued. Duy, what do you think? It seems OK to me. Thanks. -- >8 -- From: Dennis Kaarsemaker Date: Wed, 12 Oct

Re: [PATCH] worktree: allow the main brach of a bare repository to be checked out

2016-10-12 Thread Junio C Hamano
Dennis Kaarsemaker writes: > OK, so here it is as a proper patch. > > D. > > diff --git a/t/t2025-worktree-add.sh b/t/t2025-worktree-add.sh > index 4bcc335..2996c38 100755 > --- a/t/t2025-worktree-add.sh > +++ b/t/t2025-worktree-add.sh > @@ -138,6 +138,14 @@

Re: [PATCH] worktree: allow the main brach of a bare repository to be checked out

2016-10-12 Thread Michael Tutty
I have tested this successfully with git 2.10.1 built from source (failing), then patched as above (passing). Thanks! M. On Wed, Oct 12, 2016 at 11:41 AM, Dennis Kaarsemaker wrote: > In bare repositories, get_worktrees() still returns the main repository, > so git

[PATCH] worktree: allow the main brach of a bare repository to be checked out

2016-10-12 Thread Dennis Kaarsemaker
In bare repositories, get_worktrees() still returns the main repository, so git worktree list can show it. ignore it in find_shared_symref so we can still check out the main branch. Signed-off-by: Dennis Kaarsemaker --- t/t2025-worktree-add.sh | 8 worktree.c