[jhbuild] [buildbot] don't trigger builds on deleted branches
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] [buildbot] don't trigger builds on deleted branches
- Date: Mon, 10 Jan 2011 13:39:29 +0000 (UTC)
commit 23a20dd887df90bc08336c1f07bc01b4ffb48eb3
Author: Frédéric Péters <fpeters 0d be>
Date: Mon Jan 10 14:39:09 2011 +0100
[buildbot] don't trigger builds on deleted branches
jhbuild/buildbot/changes.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/buildbot/changes.py b/jhbuild/buildbot/changes.py
index 98dc410..cb6791e 100644
--- a/jhbuild/buildbot/changes.py
+++ b/jhbuild/buildbot/changes.py
@@ -76,6 +76,10 @@ class GnomeMaildirSource(MaildirSource):
# not a new git revision, may be a new tag, a new branch, etc.
return None
+ if revision == '0000000000000000000000000000000000000000':
+ # probably a deleted branch, ignore
+ return None
+
if m.get('X-Git-Refname', '').startswith('refs/tags/'):
# ignore tags
return None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]