We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61f1973 commit 0497dbdCopy full SHA for 0497dbd
bin/git-push-github.rb
hooks/post-receive.sh
@@ -14,9 +14,6 @@ function log() {
14
log "### start ###"
15
log "args: $*"
16
17
-log "==> github sync"
18
-time "${ruby_commit_hook}/bin/git-push-github.rb" "$ruby_git" $*
19
-
20
log "==> notify slack"
21
"${ruby_commit_hook}/bin/notify-slack.rb" $*
22
hooks/update.sh
@@ -3,4 +3,8 @@ set -o pipefail
3
# This script is executed by `git@git.ruby-lang.org:ruby.git/hooks/update`.
4
# Its outputs are logged to `/tmp/update.log`.
5
6
-echo hello
+refname="$1"
7
+oldrev="$2"
8
+newrev="$3"
9
+
10
+git push github "$newrev:$refname"
0 commit comments