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

Re: [PATCH v2] upload-pack: Fail if cloning empty namespace

From
Johannes Löthberg <johannes@kyriasis.com>
Date
Jun 20, 2015, 14:27 UTC
Message-ID
<20150620142705.GA23163@leeloo.kyriasis.com>
In-Reply-To
<xmqqh9q87l3x.fsf@gitster.dls.corp.google.com>
On 15/06, Junio C Hamano wrote:
>You would probably want new tests, but more importantly did you make
>sure this passes existing tests?  It seems to break 5509 (there
>could be others) at least for me.
>
It breaks 5509 currently yeah, though I've already fixed it locally.
Anyway,

You create a namespace by pushing to it, and without a HEAD the namespace is not a proper repo, and the code won't deal with them properly. (Which is why without that patch this patch is useless.)

So, if you don't want HEAD to be created when pushing to a ref namespace, (which seems to be what you're leaning toward, considering your last reply to the other thread,) then ref namespaces won't really work in most cases, and it seems pointless to support them at all.

-- 
Sincerely,
  Johannes Löthberg
  PGP Key ID: 0x50FB9B273A9D0BB5
  https://theos.kyriasis.com/~kyrias/
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 11 in “upload-pack: Fail if cloning empty namespace”
  1. upload-pack: Fail if cloning empty namespaceJohannes Löthberg, Jun 12, 2015
  2. Junio C HamanoJun 12, 2015
  3. upload-pack: Fail if cloning empty namespaceJohannes Löthberg, Jun 12, 2015
  4. Johannes LöthbergJun 12, 2015
  5. Junio C HamanoJun 15, 2015
  6. Johannes LöthbergJun 20, 2015
  7. Junio C HamanoJun 20, 2015
  8. Johannes LöthbergJun 20, 2015
  9. Junio C HamanoJun 20, 2015
  10. Johannes LöthbergJun 20, 2015
  11. Junio C HamanoJun 21, 2015

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.