pack-objects: make generated packfile read-only
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
a5878961b1
commit
d83c9af5c6
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user