templates / branches--on commit refs: store the main ref store inside the repository struct (64a7416)
   1: this is just to ensure the directory exists.