Skip to content

Commit

Permalink
Adjust reflog filemode in shared repository
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthias Kestenholz authored and Junio C Hamano committed Mar 10, 2007
1 parent ef203f0 commit 443b92b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 443b92b

Please sign in to comment.