templates / branches--on commit sha1_file: don't malloc the whole compressed result when writing out objects (9892beb)
   1: this is just to ensure the directory exists.