not critical, but you could tighten this up with string interpolation:

    commitContent.write('author ${name} <${email}...