templates / branches--on commit http: avoid empty error messages for some curl errors (be22d92)
   1: this is just to ensure the directory exists.