OSDN Git Service

Merge branch 'js/fopen-harder'
authorJunio C Hamano <gitster@pobox.com>
Wed, 20 Jan 2016 19:43:35 +0000 (11:43 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Jan 2016 19:43:35 +0000 (11:43 -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