templates / branches--on commit push: use same rules as git-rev-parse to resolve refspecs (ae36bdc)
   1: this is just to ensure the directory exists.