]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/git.pm
git: Record the username from openid in the git author email. (This avoids display...
[git.ikiwiki.info.git] / IkiWiki / Plugin / git.pm
index 85368606e12e52e6ebcbdb85cf687ec54af5e601..3e289e0c3f630adb9f0284f81f7233338fb70e38 100644 (file)
@@ -506,6 +506,11 @@ sub rcs_commit_staged (@) {
                if (defined $u) {
                        $u=encode_utf8($u);
                        $ENV{GIT_AUTHOR_NAME}=$u;
                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";
                }
        }
                        $ENV{GIT_AUTHOR_EMAIL}="$u\@web";
                }
        }