templates / branches--on commit apply --cached: fix crash in subdirectory (cd554bb)
   1: this is just to ensure the directory exists.