templates / branches--on commit rebase: factor out reference parsing (71786f5)
   1: this is just to ensure the directory exists.