Johannes Schindelin 2db7919fff squash! config.c: create missing parent directories when modifying config files
We *must not* create the leading directories when locking a config file.
It is the caller's responsibility to ensure that the directory exists,
just like it is the caller's responsibility to call `git init` before
running repository operations.

Point in case: if we simply create all leading directories, calling
`git config user.name me` *outside* of a Git worktree will *create*
.git/!

This fixes https://github.com/git-for-windows/git/issues/643 and
https://groups.google.com/forum/#!topic/git-for-windows/fVRdnDIKVuw

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2016-02-24 12:54:20 +01:00
2016-02-23 11:05:00 +01:00
2016-02-23 11:15:47 +01:00
2016-02-23 11:04:56 +01:00
2016-01-03 19:07:29 +09:00
2016-02-23 11:05:00 +01:00
2015-11-28 12:11:12 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-10-02 13:07:38 -07:00
2015-10-05 12:30:19 -07:00
2015-11-20 08:02:05 -05:00
2016-02-23 10:57:52 +01:00
2015-11-20 08:02:05 -05:00
2016-02-23 11:04:48 +01:00
2016-02-23 10:59:23 +01:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-09-28 14:57:10 -07:00
2015-09-25 10:18:18 -07:00
2016-02-23 10:57:52 +01:00
2015-11-20 08:02:05 -05:00
2015-12-10 12:36:13 -08:00
2015-12-28 13:58:58 -08:00
2016-02-22 13:12:56 -08:00
2015-10-05 12:30:19 -07:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-10-20 15:24:01 -07:00
2015-09-25 10:18:18 -07:00
2016-02-23 11:04:48 +01:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-02-23 11:04:45 +01:00
2015-11-20 08:02:05 -05:00
2016-02-23 10:59:25 +01:00
2015-09-25 08:54:54 -07:00
2015-12-10 12:36:13 -08:00
2016-02-17 10:05:44 -08:00
2015-10-05 12:30:05 -07:00
2015-10-05 12:30:05 -07:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-10-26 15:55:20 -07:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-02-23 10:56:53 +01:00
2015-11-20 08:02:05 -05:00
2015-12-10 12:36:13 -08:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-01-19 11:22:29 -08:00
2015-12-10 12:36:13 -08:00

Git for Windows

Join the chat at https://gitter.im/git-for-windows/git

This is the source code of Git for Windows, forked from Git.

This project is run by a governance model. If you encounter problems, you can report them as GitHub issues, discuss them on Git for Windows' Google Group, and contribute bug fixes.

Description
A fork of Git containing Windows-specific patches.
Readme 467 MiB
2025-08-19 03:50:05 -05:00
Languages
C 51.7%
Shell 37.5%
Perl 4.3%
Tcl 3%
Python 0.8%
Other 2.5%