mingw: always chmod(, 0666) before unlink()
commite40c594146c4368e43ce823df6dcc89589b8e547
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 23 Jan 2007 12:39:09 +0000 (23 13:39 +0100)
committerJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 23 Jan 2007 12:39:09 +0000 (23 13:39 +0100)
tree10b99da0a5f4bfa59f734c426d535c4e17742ddb
parentd576539c9255d22425efcc55f7e9720fbb8a42d1
mingw: always chmod(, 0666) before unlink()

On Windows, a read-only file cannot be deleted. To make sure that
deletion does not fail because of this, always call chmod() before
unlink().

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
git-compat-util.h
index-pack.c