From: Karsten Blees Date: Tue, 30 Jun 2015 14:34:13 +0000 (+0200) Subject: config.c: fix writing config files on Windows network shares X-Git-Tag: v2.5.0-rc2~4^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7a64592cf8cc559d6043500b8e77d1fed07c5ec2?ds=inline;hp=7a64592cf8cc559d6043500b8e77d1fed07c5ec2 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. Signed-off-by: Karsten Blees Acked-by: Jeff King Acked-by: Johannes Schindelin Signed-off-by: Junio C Hamano ---