From 835252272e0192bd26983e22428480c5c89775fb Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 11 Jul 2007 15:18:17 +0100 Subject: Fix core.sharedRepository = 2 For compatibility reasons, "git init --shared=all" does not write "all" into the config, but a number. In the shared setup, you really have to support even older clients on the _same_ repository. But git_config_perm() did not pick up on it. Also, "git update-server-info" failed to pick up on the shared permissions. This patch fixes both issues, and adds a test to prove it. Signed-off-by: Johannes Schindelin Tested-by: martin f krafft Signed-off-by: Junio C Hamano --- server-info.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server-info.c') diff --git a/server-info.c b/server-info.c index f9be5a7f6..0d1312ca5 100644 --- a/server-info.c +++ b/server-info.c @@ -38,6 +38,7 @@ static int update_info_refs(int force) return error("unable to update %s", path0); for_each_ref(add_info_ref, NULL); fclose(info_ref_fp); + adjust_shared_perm(path1); rename(path1, path0); free(path0); free(path1); @@ -227,6 +228,7 @@ static int update_info_packs(int force) return error("cannot open %s", name); write_pack_info_file(fp); fclose(fp); + adjust_shared_perm(name); rename(name, infofile); return 0; } -- cgit v1.2.1