summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-23 19:44:41 -0400
committerJoey Hess <joey@kitenet.net>2010-06-23 19:44:41 -0400
commita4f381ace837a032bc202cc6b2a98e922d4b7cfc (patch)
treeaebac93fa7dcd4305fad253bec3d1d824904ff86 /IkiWiki
parentb38b9327a8f11b642e5f51f7ee537043e25ccff9 (diff)
git: Record the username from openid in the git author email. (This avoids display of ugly google openids.)
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/git.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index 85368606e..3e289e0c3 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -506,6 +506,11 @@ sub rcs_commit_staged (@) {
if (defined $u) {
$u=encode_utf8($u);
$ENV{GIT_AUTHOR_NAME}=$u;
+ }
+ if (defined $params{session}->param("username")) {
+ $u=encode_utf8($params{session}->param("username"));
+ }
+ if (defined $u) {
$ENV{GIT_AUTHOR_EMAIL}="$u\@web";
}
}