templates / branches--on commit use strbuf_complete_line() for adding a newline if needed (a0d4923)
   1: this is just to ensure the directory exists.