templates / branches--on commit sha1_file: Fix infinite loop when pack is corrupted (b3118bd)
   1: this is just to ensure the directory exists.