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

Re: Handling of paths

From
Charles Bailey <charles@hashpling.org>
Date
Jul 20, 2017, 20:05 UTC
Message-ID
<20170720200523.GA13792@hashpling.org>
In-Reply-To
<xmqq7ez2lwsv.fsf@gitster.mtv.corp.google.com>
On Thu, Jul 20, 2017 at 12:42:40PM -0700, Junio C Hamano wrote:
Show 12 quoted lines
> Victor Toni <victor.toni@gmail.com> writes:
> 
> > What's unexpected is that paths used for sslKey or sslCert are treated
> > differently insofar as they are expected to be absolute.
> > Relative paths (whether with or without "~") don't work.
> 
> It appears that only two of these among four were made aware of the
> "~[username]/" prefix in bf9acba2 ("http: treat config options
> sslCAPath and sslCAInfo as paths", 2015-11-23), but "sslkey" and
> "sslcert" were still left as plain vanilla strings.  I do not know
> if that was an elaborate omission, or a mere oversight, as it seems
> that it happened while I was away, so...

It was more of an oversight than a deliberate omission, but more accurately I didn't actively consider whether the other http.ssl* variables were pathname-like or not.

At the time I was trying to make a config which needed to set http.sslCAPath and/or http.sslCAInfo more portable between users and these were "obviously" pathname-like to me. Now that I read the help for http.sslCert and http.sslKey, I see no reason that they shouldn't also use git_config_pathname. If I'd been more thorough I would have proposed this at the time.

Charles.
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 8 in “Handling of paths”
  1. Victor ToniJul 19, 2017
  2. Junio C HamanoJul 20, 2017
  3. Charles BaileyJul 20, 2017
  4. Junio C HamanoJul 20, 2017
  5. Charles BaileyJul 20, 2017
  6. Victor ToniJul 20, 2017
  7. Junio C HamanoJul 21, 2017
  8. Jeff KingJul 24, 2017

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.