templates / branches--on commit prune: factor out loose-object directory traversal (27e1e22)
   1: this is just to ensure the directory exists.