CPAN Patch Workflow II

A couple of weeks ago I wrote an article about my CPAN Patch Workflow, but mentioned that I couldn’t use it with older projects that do not use Github for patches. This was due to my git configuration being subtly different from Yanick’s. Basically when I was running git send-email, I was being prompted for some input, notably the password to send email, as well as a confirmation dialog.

I spent a few hours writing up some patches to Git::CPAN::Patch and resolved all of the issues I was running into, and the changes were released the other day!

If you care to send patches to RT, these details might help you.

First, configure the normal email settings in your .gitconfig:

    smtpEncryption = tls
    smtpServer =
    smtpUser =
    smtpServerPort = 587

If you are weird like me and keep your dotfiles in github, create another file called .git-smtp-password and put this in it:

   smtpPassword = $password

and finally add this to your .gitconfig:

   path = ~/.git-smtp-password

And it’s probably a good idea to chown 600 the .git-smtp-password.

Hope this helps!

Posted Tue, Aug 11, 2015