[PATCH v3 0/2] Correctly handle transient files in shared repositories
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 11, 2016, 18:35 UTC
- Message-ID
- <cover.1452537321.git.johannes.schindelin@gmx.de>
- In-Reply-To
- <cover.1452085713.git.johannes.schindelin@gmx.de>
Transient files, e.g. commit messages, are writable only by the owner, even in shared repositories, to avoid interference between competing users working on the same files.
These files are typically not deleted after use. As a consequence, we have to delete such files before writing when they are owned by someone else than the current user.
The only change relative to v2 is that the second commit message clarifies why apply, fsck and fast-import are left unchanged.
Reported-by: Yaroslav Halchenko <yoh@onerussian.com>
Johannes Schindelin (2): commit: allow editing the commit message even in shared repos Handle more file writes correctly in shared repos
builtin/commit.c | 2 +- builtin/fast-export.c | 2 +- builtin/fetch.c | 2 +- git-compat-util.h | 1 + wrapper.c | 13 +++++++++++++ 5 files changed, 17 insertions(+), 3 deletions(-)
-- 2.6.3.windows.1.300.g1c25e49