Skip to content

Commit

Permalink
repacked packs should be read-only
Browse files Browse the repository at this point in the history
... 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>
  • Loading branch information
Nicolas Pitre authored and Junio C Hamano committed Dec 13, 2006
1 parent 1d77043 commit ad2c82c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-repack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad2c82c

Please sign in to comment.