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

RUNTIME_PREFIX references in gitconfig variable paths

From
Paul Smith <paul@mad-scientist.net>
Date
Jul 4, 2018, 06:08 UTC
Message-ID
<e9d5bbec6242e47b1f4141ffd99b276eb6a41347.camel@mad-scientist.net>

One thing I wanted to do was provide a default ca-bundle.crt file along with my local build of Git. I need my installation to be relocatable and I'm using RUNTIME_PREFIX with Git 2.18.0 (on GNU/Linux).

I can provide a system gitconfig file with a setting for http.sslCAInfo but the problem is I can't create a relocatable path here so I don't know how to set it:

  $ cat $prefix/etc/gitconfig
  [http]
      sslCAInfo = <prefix>/etc/ca-bundle.crt

What do I use for <prefix> above since I want it to be relocatable? Basically I want this to be in the same directory as the relocatable sysconfdir (I don't actually care much but that seems like a good place).

Is there some way to create a reference to a path relative to the installation directory?

For example "~" is accepted as the users $HOME path; is there some syntax which refers to the Git installation directory?

If not this seems like something that would be very useful.

I can use a wrapper script and set GIT_SSL_CAINFO, but that will also override any user's setting of http.sslCAInfo in their local gitconfig which I don't really want.

Next: Johannes Schindelin
Message 1 of 4 in “RUNTIME_PREFIX references in gitconfig variable paths”
  1. Paul SmithJul 4, 2018
  2. Johannes SchindelinJul 4, 2018
  3. Paul SmithJul 4, 2018
  4. Johannes SchindelinOct 2, 2018

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.