templates / branches--on commit config: avoid "write_in_full(fd, buf, len) < len" pattern (efacf60)
   1: this is just to ensure the directory exists.