Re: [PATCH v4] receive-pack: Create a HEAD ref for ref namespace

2015-06-15 Thread Johannes Löthberg
On 15/06, Junio C Hamano wrote: Johannes Löthberg writes: else { + namespace = get_git_namespace(); + if (strcmp(namespace, "refs/namespaces/")) { + strbuf_addf(&namespaced_head_buf, "%s%s", namespace, "HEAD"); + n

Re: [PATCH v4] receive-pack: Create a HEAD ref for ref namespace

2015-06-15 Thread Junio C Hamano
Johannes Löthberg writes: > diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c > index d2ec52b..0c18c92 100644 > --- a/builtin/receive-pack.c > +++ b/builtin/receive-pack.c > @@ -864,7 +864,9 @@ static const char *update(struct command *cmd, struct > shallow_info *si) > { > cons

Re: [PATCH v4] receive-pack: Create a HEAD ref for ref namespace

2015-06-10 Thread Johannes Löthberg
On 05/06, Johannes Löthberg wrote: Each ref namespace have their own separate branches, tags, and HEAD, so when pushing to a namespace we need to make sure that there exists a HEAD ref for the namespace, otherwise you will not be able to check out the repo after cloning from a namespace Signed-o

[PATCH v4] receive-pack: Create a HEAD ref for ref namespace

2015-06-05 Thread Johannes Löthberg
Each ref namespace have their own separate branches, tags, and HEAD, so when pushing to a namespace we need to make sure that there exists a HEAD ref for the namespace, otherwise you will not be able to check out the repo after cloning from a namespace Signed-off-by: Johannes Löthberg --- Changes