templates / branches--on commit sha1_file: support reading from a loose object of unknown type (46f0344)
   1: this is just to ensure the directory exists.