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

Re: Bug report: Git 1.8 on Ubuntu 13.10 refs not valid

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 31, 2014, 18:27 UTC
Message-ID
<xmqqbnwm6x5i.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20140331180118.GA31023@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> That being said, git _could_ be more liberal in accepting a content-type
> with parameters (even though it does not know about any parameters, and
> charset here is completely meaningless). I have mixed feelings on that.

It may be just a matter of replacing strbuf_cmp() with "the initial part must be this string" followed by "it could have an optional whitespaces and semicolon after that", but I share the mixed feelings.

I am not sure if it is a right thing to follow "be liberal to accept" dictum in this case. It may be liberal in accepting blindly, but if the other end is asking a behaviour that is not standard (but perhaps in future versions of Git such an enhanced service may be implemented by the client), by ignoring the parameter we do not even know about how to handle, we would be giving surprises to the overall protocol exchange.

Previous: Jeff KingNext: Jeff King
Message 4 of 5 in “Bug report: Git 1.8 on Ubuntu 13.10 refs not valid”
  1. SiggiMar 27, 2014
  2. Jeff KingMar 27, 2014
  3. Jeff KingMar 31, 2014
  4. Junio C HamanoMar 31, 2014
  5. Jeff KingMar 31, 2014

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.