pack-objects: make generated packfile read-only

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2007-04-22 19:00:16 -07:00
parent a5878961b1
commit d83c9af5c6

View File

@ -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",