Do not rename read-only files during a push
authorPetr Baudis <redacted>
Fri, 3 Oct 2008 10:20:43 +0000 (12:20 +0200)
committerJunio C Hamano <redacted>
Sat, 18 Oct 2008 14:16:38 +0000 (07:16 -0700)
commit33b650308c9be52180c6556b17cb9fc1fba3adf4
tree3799bb7fdc34a2939c147ab431f33c6f3656fd88
parent5c283eb13c94be6ca974aa722159dc9838d10d97
Do not rename read-only files during a push

Win32 does not allow renaming read-only files (at least on a Samba
share), making push into a local directory to fail. Thus, defer
the chmod() call in index-pack.c:final() only after
move_temp_to_file() was called.

Signed-off-by: Petr Baudis <redacted>
Signed-off-by: Shawn O. Pearce <redacted>
index-pack.c
git clone https://git.99rst.org/PROJECT