]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/git.pm
Merge commit 'ecdfd1b8644bc926db008054ab6192e18351afed' into sipb
[ikiwiki.git] / IkiWiki / Plugin / git.pm
index b02fc118ddc0e758bee82b22b7c49b713a1e3153..c9e2d391c54995b731bc6e1d5716f017323b3c26 100644 (file)
@@ -4,6 +4,7 @@ package IkiWiki::Plugin::git;
 use warnings;
 use strict;
 use IkiWiki;
+use IkiWiki::UserInfo;
 use Encode;
 use open qw{:utf8 :std};
 
@@ -505,8 +506,9 @@ sub rcs_commit_staged (@) {
                }
                if (defined $u) {
                        $u=encode_utf8($u);
-                       $ENV{GIT_AUTHOR_NAME}=$u;
-                       $ENV{GIT_AUTHOR_EMAIL}="$u\@web";
+                       # MITLOGIN This algorithm could be improved
+                       $ENV{GIT_AUTHOR_NAME}=IkiWiki::userinfo_get($u, "realname");
+                       $ENV{GIT_AUTHOR_EMAIL}="$u\@mit.edu";
                }
        }