templates / branches--on commit refs_verify_refname_available(): use function in more places (524a9fd)
   1: this is just to ensure the directory exists.