summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorMatthias Kestenholz <matthias@spinlock.ch>2007-03-09 23:38:57 +0100
committerJunio C Hamano <junkio@cox.net>2007-03-09 16:46:53 -0800
commit443b92b6e50462942a8b2ca22a7def87036762ff (patch)
tree5ad6856a431f8eeb6294a2eb6c6d3eb641ed8b23 /refs.c
parentef203f08564c1c6d267fedf8e0357c56d477892f (diff)
downloadgit-443b92b6e50462942a8b2ca22a7def87036762ff.tar.gz
Adjust reflog filemode in shared repository
Without this, committing in a group-shared repository would not work even though all developers are in the same group. Signed-off-by: Matthias Kestenholz <matthias@spinlock.ch> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/refs.c b/refs.c
index a9b8c72c6b..131e870149 100644
--- a/refs.c
+++ b/refs.c
@@ -921,6 +921,8 @@ static int log_ref_write(const char *ref_name, const unsigned char *old_sha1,
log_file, strerror(errno));
}
+ adjust_shared_perm(log_file);
+
msglen = 0;
if (msg) {
/* clean up the message and make sure it is a single line */