git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Question] etc/gitconfig and .gitconfig missing errors
@ 2025-01-11 15:07 rsbecker
  2025-01-13  6:01 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: rsbecker @ 2025-01-11 15:07 UTC (permalink / raw)
  To: git

Hi All,

Question from my community. The standard git install does not automatically
create
the /usr/local/etc directory if it does not exist, so the git config
--system fails.
If etc/gitconfig is missing, the command also fails. Similarly, if
~/.gitconfig is missing,
git config -global fails.

Is this intended? I have been telling my people that they should pre-create
those files
with appropriate security. I have mused that having git auto-create this
file may
introduce potential CVEs, explaining the situation. Is this assumption
correct?

Thanks,
Randall

--
Brief whoami: NonStop&UNIX developer since approximately
UNIX(421664400)
NonStop(211288444200000000)
-- In real life, I talk too much.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-13  6:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-11 15:07 [Question] etc/gitconfig and .gitconfig missing errors rsbecker
2025-01-13  6:01 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).