Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
default pull: forget about "newbie protection" for now.
[gitweb.git]
/
git-repack.sh
diff --git
a/git-repack.sh
b/git-repack.sh
index f150a558ca7a7a659f4eb88be3a275e1a4e87337..067898f1207736732c2c80eabbef5537f8dfef69 100755
(executable)
--- 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