{"thread":{"id":"43493","subject":"[PATCH] repacked packs should be read-only","startedAt":"2006-12-13T21:25:26Z","lastAt":"2006-12-13T21:25:26Z","messageCount":1,"participants":["Nicolas Pitre"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"295114","messageId":"Pine.LNX.4.64.0612131620280.18171@xanadu.home","threadId":"43493","inReplyTo":null,"subject":"[PATCH] repacked packs should be read-only","fromName":"Nicolas Pitre","fromEmail":"nico@cam.org","sentAt":"2006-12-13T21:25:26Z","receivedAt":"2006-12-13T21:25:26Z","isPatch":true,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"... just like the other pack creating tools do.\n\nSigned-off-by: Nicolas Pitre <nico@cam.org>\n\n---\n\ndiff --git a/git-repack.sh b/git-repack.sh\nindex f150a55..067898f 100755\n--- a/git-repack.sh\n+++ b/git-repack.sh\n@@ -67,6 +67,8 @@ name=$(git-pack-objects --non-empty --all $args </dev/null \"$PACKTMP\") ||\n if [ -z \"$name\" ]; then\n \techo Nothing new to pack.\n else\n+\tchmod a-w \"$PACKTMP-$name.pack\"\n+\tchmod a-w \"$PACKTMP-$name.idx\"\n \tif test \"$quiet\" != '-q'; then\n \t    echo \"Pack pack-$name created.\"\n"}]}