templates / branches--on commit repack_without_ref(): reimplement using do_for_each_ref_in_array() (d66da47)
   1: this is just to ensure the directory exists.