templates / branches--on commit use xmallocz to avoid size arithmetic (3733e69)
   1: this is just to ensure the directory exists.