aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-17 19:12:34 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-17 19:12:34 -0400
commitafd3126e555b01ea9e3b5d9f3b7625b2fdca1d12 (patch)
treea7adf057755a0cc59a0ae2b0f9b5cd269ee9775f /IkiWiki
parent3aa616a5269488f9cfebf7f5d36e0e7f50e08de2 (diff)
downloadikiwiki-afd3126e555b01ea9e3b5d9f3b7625b2fdca1d12.tar
ikiwiki-afd3126e555b01ea9e3b5d9f3b7625b2fdca1d12.tar.gz
dummy up an email address for web commits
Not doing so breaks cia and other things that try to parse a username out of the email address.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Rcs/git.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/IkiWiki/Rcs/git.pm b/IkiWiki/Rcs/git.pm
index 26f2a39f2..aa7657b5c 100644
--- a/IkiWiki/Rcs/git.pm
+++ b/IkiWiki/Rcs/git.pm
@@ -319,11 +319,12 @@ sub rcs_commit ($$$;$$) { #{{{
return $conflict if defined $conflict;
}
- # Set the commit author to the web committer.
+ # Set the commit author and email to the web committer.
my %env=%ENV;
if (defined $user || defined $ipaddr) {
- $ENV{GIT_AUTHOR_NAME}=(defined $user ? $user : $ipaddr)." (web)";
- $ENV{GIT_AUTHOR_EMAIL}="";
+ my $u=defined $user ? $user : $ipaddr;
+ $ENV{GIT_AUTHOR_NAME}=$u;
+ $ENV{GIT_AUTHOR_EMAIL}="$u\@web";
}
# git commit returns non-zero if file has not been really changed.
@@ -390,7 +391,7 @@ sub rcs_recentchanges ($) { #{{{
}
my $user=$ci->{'author_username'};
- my $web_commit = ($user=~s/\s+\(web\)$//);
+ my $web_commit = ($user=~s/\@web//);
# compatability code for old web commit messages
if (! $web_commit &&