summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/git-notify8
1 files changed, 5 insertions, 3 deletions
diff --git a/libexec/git-notify b/libexec/git-notify
index 64da7c0..0e50229 100755
--- a/libexec/git-notify
+++ b/libexec/git-notify
@@ -34,9 +34,12 @@
34# 34#
35 35
36use strict; 36use strict;
37use Fcntl ':flock'; 37use utf8;
38use Encode qw(encode decode); 38use feature qw(evalbytes unicode_eval unicode_strings);
39use open qw(:std :utf8);
39use Cwd 'realpath'; 40use Cwd 'realpath';
41use Encode qw(encode);
42use Fcntl ':flock';
40 43
41sub git_config($); 44sub git_config($);
42sub get_repos_name(); 45sub get_repos_name();
@@ -515,7 +518,6 @@ sub send_commit_notice($$)
515 } 518 }
516 519
517 $subject .= truncate_str(${$info{"log"}}[0],50); 520 $subject .= truncate_str(${$info{"log"}}[0],50);
518 $_ = decode($info{"encoding"}, $_) for @notice;
519 mail_notification("$info{'committer_name'} <$from_address>", $commitlist_address, $subject, 521 mail_notification("$info{'committer_name'} <$from_address>", $commitlist_address, $subject,
520 "text/plain; charset=UTF-8", @notice); 522 "text/plain; charset=UTF-8", @notice);
521} 523}