зеркало из https://github.com/microsoft/git.git
Merge branch 'kb/config-unmap-before-renaming'
"git config" failed to update the configuration file when the underlying filesystem is incapable of renaming a file that is still open. * kb/config-unmap-before-renaming: config.c: fix writing config files on Windows network shares
This commit is contained in:
Коммит
313f52334b
3
config.c
3
config.c
|
@ -2118,6 +2118,9 @@ int git_config_set_multivar_in_file(const char *config_filename,
|
|||
contents_sz - copy_begin) <
|
||||
contents_sz - copy_begin)
|
||||
goto write_err_out;
|
||||
|
||||
munmap(contents, contents_sz);
|
||||
contents = NULL;
|
||||
}
|
||||
|
||||
if (commit_lock_file(lock) < 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче