Code

create_tempfile: make sure that leading directories can be accessible by peers
authorJunio C Hamano <gitster@pobox.com>
Tue, 17 Jun 2008 05:02:12 +0000 (22:02 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jun 2008 05:02:12 +0000 (22:02 -0700)
commit3bfaf01857ebcefbd38529a73b059dc984ecb5a4
tree091e2c0bd44983126a75707c43ae1bec053e6b87
parent1421c5f274a10f93ce5e8b51c0e1351905f84f4e
create_tempfile: make sure that leading directories can be accessible by peers

In a shared repository, we should make sure adjust_shared_perm() is called
after creating the initial fan-out directories under objects/ directory.

Earlier an logico called the function only when mkdir() failed; we should
do so when mkdir() succeeded.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c