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

[PATCH] repacked packs should be read-only

From
Nicolas Pitre <nico@cam.org>
Date
Dec 13, 2006, 21:25 UTC
Message-ID
<Pine.LNX.4.64.0612131620280.18171@xanadu.home>
... just like the other pack creating tools do.
Signed-off-by: Nicolas Pitre <nico@cam.org>
---
diff --git a/git-repack.sh b/git-repack.sh
index f150a55..067898f 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -67,6 +67,8 @@ name=$(git-pack-objects --non-empty --all $args </dev/null "$PACKTMP") ||
 if [ -z "$name" ]; then
 	echo Nothing new to pack.
 else
+	chmod a-w "$PACKTMP-$name.pack"
+	chmod a-w "$PACKTMP-$name.idx"
 	if test "$quiet" != '-q'; then
 	    echo "Pack pack-$name created."
Message 1 of 1 in “repacked packs should be read-only”
  1. repacked packs should be read-onlyNicolas Pitre, Dec 13, 2006

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.