templates / branches--on commit checkout: split off a function to peel away branchname arg (09ebad6)
   1: this is just to ensure the directory exists.