Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
- Loading branch information