Merge branch 'js/fopen-harder' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 5 Feb 2016 22:54:11 +0000 (14:54 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Feb 2016 22:54:11 +0000 (14:54 -0800)
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

1  2 
builtin/commit.c
builtin/fast-export.c
builtin/fetch.c
git-compat-util.h
wrapper.c

Simple merge
Simple merge
diff --cc builtin/fetch.c
Simple merge
Simple merge
diff --cc wrapper.c
Simple merge