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

Re: [BUG] PREFIX environment variable ignored by git config --system

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 29, 2025, 16:41 UTC
Message-ID
<xmqqbjvpk1wo.fsf@gitster.g>
In-Reply-To
<007f01db726b$ac911ce0$05b356a0$@nexbridge.com>
<rsbecker@nexbridge.com> writes:
Show 10 quoted lines
> Thank you for filling out a Git bug report!
>
> Please answer the following questions to help us understand your issue.
>
> What did you do before the bug happened? (Steps to reproduce your issue)
> export PREFIX=/home/randall
> git config --system --list
>
> What did you expect to happen? (Expected behavior)
> Git should use ${PREFIX}/etc/gitconfig instead of the build location to

But that is now how PREFIX works, as far as I remember. PREFIX is a build-time thing.

Perhaps you are looking for RUNTIME_PREFIX build-time option? I do not know how well it is maintained these days, and if it allows you to futz with the paths at runtime (without _moving_ the executable and all other installation material en masse), though.

Previous: rsbecker@nexbridge.comNext: rsbecker@nexbridge.com
Message 2 of 15 in “[BUG] PREFIX environment variable ignored by git config --system”
  1. rsbecker@nexbridge.comJan 29, 2025
  2. Junio C HamanoJan 29, 2025
  3. rsbecker@nexbridge.comJan 29, 2025
  4. Junio C HamanoJan 29, 2025
  5. rsbecker@nexbridge.comJan 29, 2025
  6. Junio C HamanoJan 29, 2025
  7. rsbecker@nexbridge.comJan 29, 2025
  8. Junio C HamanoJan 29, 2025
  9. rsbecker@nexbridge.comJan 30, 2025
  10. Junio C HamanoJan 30, 2025
  11. rsbecker@nexbridge.comJan 30, 2025
  12. Ben KnobleJan 30, 2025
  13. Junio C HamanoJan 30, 2025
  14. rsbecker@nexbridge.comJan 29, 2025
  15. Junio C HamanoJan 29, 2025

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.