author | Petr Baudis <pasky@suse.cz> | |
Fri, 3 Oct 2008 10:20:43 +0000 (12:20 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 18 Oct 2008 14:16:38 +0000 (07:16 -0700) | ||
commit | 33b650308c9be52180c6556b17cb9fc1fba3adf4 | |
tree | 3799bb7fdc34a2939c147ab431f33c6f3656fd88 | tree | snapshot |
parent | 5c283eb13c94be6ca974aa722159dc9838d10d97 | commit | diff |
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 <pasky@suse.cz>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
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 <pasky@suse.cz>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
index-pack.c | diff | blob | history |