move_temp_to_file(): do not forget to chmod() in "Coda hack" codepath
commit3be1f18e1b15c28ac6c750ff1a42576fd981d0f5
authorJunio C Hamano <gitster@pobox.com>
Sat, 28 Mar 2009 06:14:39 +0000 (27 23:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 28 Mar 2009 15:01:21 +0000 (28 08:01 -0700)
tree934849257071ebf9506cc6151e4ac5f2df8246a5
parentfb8b193670b0c11d118185332efc899d6d01d5f4
move_temp_to_file(): do not forget to chmod() in "Coda hack" codepath

Now move_temp_to_file() is responsible for doing everything that is
necessary to turn a tempfile in $GIT_DIR into its final form, it must make
sure "Coda hack" codepath correctly makes the file read-only.

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