templates / branches--on commit tests: "cp -a" is a GNUism (d4a7ffa)
   1: this is just to ensure the directory exists.