templates / branches--on commit read-tree: use xcalloc (aa4cfa8)
   1: this is just to ensure the directory exists.