OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d77043
)
repacked packs should be read-only
author
Nicolas Pitre
<nico@cam.org>
Wed, 13 Dec 2006 21:25:26 +0000
(16:25 -0500)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 13 Dec 2006 22:18:16 +0000
(14:18 -0800)
... 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>
git-repack.sh
patch
|
blob
|
history
diff --git
a/git-repack.sh
b/git-repack.sh
index
f150a55
..
067898f
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