aboutsummaryrefslogtreecommitdiff
path: root/builtin-pack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-04-22 19:00:16 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-22 19:00:16 -0700
commitd83c9af5c6a437ddaa9dd2747e83aee642501a44 (patch)
tree7020d0ef40a05cd5f0e58aa973ea2136ae278183 /builtin-pack-objects.c
parenta5878961b14c1b4f6d1d08c0d3a2f5234659fb8a (diff)
downloadgit-d83c9af5c6a437ddaa9dd2747e83aee642501a44.tar.gz
git-d83c9af5c6a437ddaa9dd2747e83aee642501a44.tar.xz
pack-objects: make generated packfile read-only
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-pack-objects.c')
-rw-r--r--builtin-pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 34350bf32..50fc37fa0 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -1790,7 +1790,7 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
mode_t mode = umask(0);
umask(mode);
- mode = 0666 & ~mode;
+ mode = 0444 & ~mode;
write_index_file(last_obj_offset, object_list_sha1);
snprintf(tmpname, sizeof(tmpname), "%s-%s.pack",