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

Git --file doesn't override $HOME in version 1.8.1.2

From
STSarajärvi Tony <tony.sarajarvi@digia.com>
Date
Jul 9, 2013, 11:05 UTC
Message-ID
<C8A88C530F38AE47B22BDC434090CBB0ED26E0@IT-EXMB01-HKI.it.local>
Using Ubuntu 13.04 with Git 1.8.1.2 I stumbled upon a problem using Puppet.

In Puppet we launch Git with the command: '/usr/bin/git config --file /home/qt/.gitconfig --get "user.name" "Qt Continuous Integration System"' However, puppet logs: "fatal: unable to access '/root/.config/git/config': Permission denied".

Puppet is run as root, so HOME points to /root, but still -file should override the environment variable.
If the same command is run directly from terminal as root, it works as well.
With 1.8.3.2 the problem didn't reoccur.

-Tony ------- Digia, Qt

Next: Thomas Rast
Message 1 of 5 in “Git --file doesn't override $HOME in version 1.8.1.2”
  1. Sarajärvi TonyJul 9, 2013
  2. Thomas RastJul 9, 2013
  3. Jeff KingJul 9, 2013
  4. Junio C HamanoJul 9, 2013
  5. Sarajärvi TonyJul 9, 2013

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.