Adjust reflog filemode in shared repository
authorMatthias Kestenholz <matthias@spinlock.ch>
Fri, 9 Mar 2007 22:38:57 +0000 (23:38 +0100)
committerJunio C Hamano <junkio@cox.net>
Sat, 10 Mar 2007 00:46:53 +0000 (16:46 -0800)
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>
refs.c
diff --git a/refs.c b/refs.c
index a9b8c72c6b6ea017f36639f01c997275299b16ad..131e87014987c0660af6ecdb3c62ef81c1270a25 100644 (file)
--- 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 */