git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] update-server-info: honor core.sharedRepository

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 11, 2007, 12:39 UTC
Message-ID
<Pine.LNX.4.64.0707111338360.4516@racer.site>

Earlier, update-server-info used the umask, even if core.sharedRepository = 1.

Noticed by madduck on IRC.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
	Does this work for you?
 server-info.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/server-info.c b/server-info.c
index f9be5a7..0d1312c 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;
 }
Next: martin f krafft
Message 1 of 4 in “update-server-info: honor core.sharedRepository”
  1. update-server-info: honor core.sharedRepositoryJohannes Schindelin, Jul 11, 2007
  2. martin f krafftJul 11, 2007
  3. Fix core.sharedRepository = 2Johannes Schindelin, Jul 11, 2007
  4. martin f krafftJul 11, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.