templates / remotes--on commit ls-files and read-tree need core.filemode (39b4ac9)
   1: this is just to ensure the directory exists.