repacked packs should be read-only
... just like the other pack creating tools do. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Nicolas Pitre committed
Dec 13, 2006 at 16:25 UTC
ad2c82c0e1a543f4475a948ccb3eb4afcce86f26
1 file changed
+2
git-repack.sh
+2
@@ -67,6 +67,8 @@ name=$(git-pack-objects --non-empty --all $args </dev/null "$PACKTMP") ||
67
if [ -z "$name" ]; then
68
echo Nothing new to pack.
69
else
70
+ chmod a-w "$PACKTMP-$name.pack"
71
+ chmod a-w "$PACKTMP-$name.idx"
72
if test "$quiet" != '-q'; then
73
echo "Pack pack-$name created."
74
fi