templates / branches--on commit fix "git apply --index ..." not to deref NULL (2c93286)
   1: this is just to ensure the directory exists.