From: Junio C Hamano Date: Wed, 20 Jan 2016 19:43:35 +0000 (-0800) Subject: Merge branch 'js/fopen-harder' X-Git-Tag: v2.8.0-rc0~108 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7a63c9e3da357a21115e9b5de7ed84b744f9d8b1 Merge branch 'js/fopen-harder' Some codepaths used fopen(3) when opening a fixed path in $GIT_DIR (e.g. COMMIT_EDITMSG) that is meant to be left after the command is done. This however did not work well if the repository is set to be shared with core.sharedRepository and the umask of the previous user is tighter. They have been made to work better by calling unlink(2) and retrying after fopen(3) fails with EPERM. * js/fopen-harder: Handle more file writes correctly in shared repos commit: allow editing the commit message even in shared repos --- 7a63c9e3da357a21115e9b5de7ed84b744f9d8b1