Just a comment: since the bash heredoc delimiter in e.g. the commit ruby script isn't quoted, you can use shell variables directly, w/o going through the 'env' array. But rather than do this, maybe it'd be better to quote the delimiter for safe use of the dollar sign and back ticks.