Ignoring sourcestamps with no revision in the reporter.

This commit is contained in:
Marvin Pohl 2018-09-27 20:50:21 +02:00
parent 7322dd3853
commit d7f34fc6dd

View File

@ -115,6 +115,9 @@ class GiteaStatusPush(http.HttpStatusPushBase):
for sourcestamp in sourcestamps: for sourcestamp in sourcestamps:
sha = sourcestamp['revision'] sha = sourcestamp['revision']
if sha is None:
# No special revision for this, so ignore it
continue
if 'repository_name' in props: if 'repository_name' in props:
repository_name = props['repository_name'] repository_name = props['repository_name']
else: else: