From: Johannes Sixt Date: Tue, 30 Mar 2010 07:46:23 +0000 (+0200) Subject: Windows: fix utime() for read-only files X-Git-Tag: v1.7.0.4~8 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/852f098c0667abc634f5aba0b91e0317f714fa67?hp=852f098c0667abc634f5aba0b91e0317f714fa67 Windows: fix utime() for read-only files Starting with 5256b00 (Use git_mkstemp_mode instead of plain mkstemp to create object files, 2010-02-22) utime() is invoked on read-only files. This is not allowed on Windows and results in many warnings of the form failed utime() on .git/objects/23/tmp_obj_VlgHlc: Permission denied during a repack. Fix it by making the file temporarily writable. Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano ---