templates / branches--on commit git-p4: work with a detached head (00ad6e3)
   1: this is just to ensure the directory exists.