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

Re: [PATCH] git config: do not create .git/ if it does not exist yet

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 24, 2016, 12:13 UTC
Message-ID
<alpine.DEB.2.20.1602241309560.3152@virtualbox>
In-Reply-To
<alpine.DEB.2.20.1602241230120.3152@virtualbox>
Hi,
On Wed, 24 Feb 2016, Johannes Schindelin wrote:
> I created a test and essentially duplicated Peff's finding: this is a
> Windows-only issue.
Indeed it is in our patches:
	https://github.com/git-for-windows/git/commit/3a4c37b22

(short version: we carry some patches that simplify locking the config file before building on top of it, and somehow we agreed back in the days when this patch was written that it would be a good idea if that code created leading directories.)

I will fix this issue in Git for Windows, but I still think that my patch brings a usability improvement: the error message is just so much more to the point (will submit v2 in a moment).

Ciao, Dscho

Previous: Johannes SchindelinNext: Jeff King
Message 6 of 16 in “git config: do not create .git/ if it does not exist yet”
  1. git config: do not create .git/ if it does not exist yetJohannes Schindelin, Feb 24, 2016
  2. Jeff KingFeb 24, 2016
  3. John KeepingFeb 24, 2016
  4. Jeff KingFeb 24, 2016
  5. Johannes SchindelinFeb 24, 2016
  6. Johannes SchindelinFeb 24, 2016
  7. Jeff KingFeb 24, 2016
  8. Junio C HamanoFeb 24, 2016
  9. Duy NguyenFeb 24, 2016
  10. git config: report when trying to modify a non-existing repo configJohannes Schindelin, Feb 24, 2016
  11. Duy NguyenFeb 24, 2016
  12. Johannes SchindelinFeb 24, 2016
  13. Duy NguyenFeb 24, 2016
  14. Junio C HamanoFeb 24, 2016
  15. Junio C HamanoFeb 24, 2016
  16. Johannes SchindelinFeb 25, 2016

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.