templates / branches--on commit refspec: factor out parsing a single refspec (3eec370)
   1: this is just to ensure the directory exists.