Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 git-for-windows#226. Signed-off-by: Karsten Blees <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
- Loading branch information