]> git.ipfire.org Git - thirdparty/git.git/commit - compat/mingw.c
mingw: try to delete target directory before renaming
author마누엘 <nalla@hamal.uberspace.de>
Tue, 26 Jan 2016 14:34:47 +0000 (15:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Jan 2016 21:42:59 +0000 (13:42 -0800)
commit4426fb51421cdbf6f8d4c8dfb8bffd7adb51e034
treee45467a6d979d71eb2e6d61e9fc110fb5f4f6161
parent1fc7bf79e5f907b85aa0213c0ad4969506cf8f2b
mingw: try to delete target directory before renaming

When the rename() function tries to move a directory it fails if the
target directory exists. It should check if it can delete the (possibly
empty) target directory and then try again to move the directory.

This partially fixes t9100-git-svn-basic.sh.

Signed-off-by: 마누엘 <nalla@hamal.uberspace.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c