templates / branches--on commit filter_refs(): simplify logic (f537cfa)
   1: this is just to ensure the directory exists.