templates / branches--on commit revision: factor out add_pending_sha1 (26c3177)
   1: this is just to ensure the directory exists.