mirror of
https://github.com/git/git.git
synced 2026-02-07 00:05:02 +00:00
config.c: fix writing config files on Windows network shares
Renaming to an existing file doesn't work on Windows network shares if the target file is open. munmap() the old config file before commit_lock_file. This fixes https://github.com/git-for-windows/git/issues/226. Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Johannes Schindelin
parent
410d6fad32
commit
acee5f88ee
Reference in New Issue
Block a user