summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2006-12-13 21:25:26 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-13 22:18:16 (GMT)
commitad2c82c0e1a543f4475a948ccb3eb4afcce86f26 (patch)
tree40425ff227209ea82ca313af1e845b33b566cb4d
parent1d77043b005921cf7fcebfe680777df23ad10119 (diff)
downloadgit-ad2c82c0e1a543f4475a948ccb3eb4afcce86f26.zip
git-ad2c82c0e1a543f4475a948ccb3eb4afcce86f26.tar.gz
git-ad2c82c0e1a543f4475a948ccb3eb4afcce86f26.tar.bz2
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>
-rwxr-xr-xgit-repack.sh2
1 files changed, 2 insertions, 0 deletions
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."
fi