templates / branches--on commit match_explicit: hoist refspec lhs checks into their own function (f7ade3d)
   1: this is just to ensure the directory exists.