diff options
author | James E. Blair <jeblair@openstack.org> | 2013-08-27 17:17:02 -0700 |
---|---|---|
committer | James E. Blair <jeblair@openstack.org> | 2013-08-27 17:17:02 -0700 |
commit | 312df9a7e87e00344516ff9ba390958bc993fecb (patch) | |
tree | 28fdbd7fc89741e82563292b262474cba813948a | |
parent | b34e9261fe16d551fb9bc804090059d179510a69 (diff) | |
download | zuul-312df9a7e87e00344516ff9ba390958bc993fecb.tar.gz |
Fix preprocessing for ref-updated events
The conditional that did a 'git remote update' for ref-updated
events (which otherwise don't affect the Merger) was wrong.
Change-Id: Icb2596df023279442613e10e13104a3621d867d9
-rw-r--r-- | zuul/scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zuul/scheduler.py b/zuul/scheduler.py index 6a6c5d1ce..8f909ebf1 100644 --- a/zuul/scheduler.py +++ b/zuul/scheduler.py @@ -563,7 +563,7 @@ class Scheduler(threading.Thread): return # Preprocessing for ref-update events - if hasattr(event, 'refspec'): + if event.ref: # Make sure the local git repo is up-to-date with the remote one. # We better have the new ref before enqueuing the changes. # This is done before enqueuing the changes to avoid calling an |