This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 2c66d07 handle pushes as well as commits
2c66d07 is described below
commit 2c66d07d3160cc0b84af294d2d31bd21635abe56
Author: Sam Ruby <[email protected]>
AuthorDate: Wed Jun 7 12:40:50 2017 -0400
handle pushes as well as commits
---
tools/pubsub.rb | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tools/pubsub.rb b/tools/pubsub.rb
index cad6038..ecc938b 100644
--- a/tools/pubsub.rb
+++ b/tools/pubsub.rb
@@ -108,7 +108,7 @@ end
# prime the pump
restartable = false
notification_queue = Queue.new
-notification_queue.push 'commit' => {'project' => 'whimsy'}
+notification_queue.push 'project' => 'whimsy'
ps_thread = Thread.new do
begin
@@ -126,8 +126,10 @@ ps_thread = Thread.new do
if notification['stillalive']
restartable = true
+ elsif notification['push']
+ notification_queue << notification['push']
elsif notification['commit']
- notification_queue << notification
+ notification_queue << notification['commit']
elsif notification['svnpubsub']
next
else
@@ -158,7 +160,7 @@ project = File.basename(options.remote, '.git')
begin
while ps_thread.alive?
notification = notification_queue.pop
- next unless notification['commit']['project'] == project
+ next unless notification['project'] == project
notification_queue.clear
Dir.chdir(options.local) do
before = `git log --oneline -1`
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].