* [PATCH] repacked packs should be read-only
@ 2006-12-13 21:25 Nicolas Pitre
0 siblings, 0 replies; only message in thread
From: Nicolas Pitre @ 2006-12-13 21:25 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
... just like the other pack creating tools do.
Signed-off-by: Nicolas Pitre <nico@cam.org>
---
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."
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-13 22:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-13 21:25 [PATCH] repacked packs should be read-only Nicolas Pitre
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).