Skip to content

Commit 30c8d93

Browse files
committed
Deploy check-email.rb in production
1 parent 844ec9b commit 30c8d93

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

bin/check-email.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# This association will be used for committer identification of the ruby repository.
1010

1111
SVN_TO_EMAILS = {
12-
#"mame" => ["mame@ruby-lang.org"],
12+
"mame" => ["mame@ruby-lang.org"],
1313
}
1414

1515
LOG_FILE = "/home/git/email.log"

hooks/pre-receive.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash -eu
2+
set -o pipefail
3+
# This script is executed by `git@git.ruby-lang.org:ruby-commit-hook.git/hooks/pre-receive`.
4+
5+
# script parameters
6+
ruby_git="/var/git/ruby.git"
7+
hook_log="/tmp/pre-receive.log"
8+
ruby_commit_hook="$(cd "$(dirname $0)"; cd ..; pwd)"
9+
10+
$ruby_commit_hook/bin/check-email.rb $* || exit 1

0 commit comments

Comments
 (0)