Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Fixed bug when fetching new revision fails (throws exception etc) #15

Merged
merged 2 commits into from
Jun 10, 2016

Conversation

ImmoStanke
Copy link
Contributor

Because the loop in "wait-for-revision-changed" would always recur with whatever revision was fetched, if the fetch fails, it recurs with the last seen revision as nil. This means that whenever a fetch fails, on the next poll the pipeline will trigger (even if there was no actual change). The recur only happens when the fetch has either failed or the revision has stayed the same, so recurring with the last seen revision should be fine and it fixes the problem.

…revision would be replaced by nil, so the pipeline would always trigger after a failed revision fetch
@flosell
Copy link
Owner

flosell commented Jun 9, 2016

Good catch, thanks! Could you add a test for this?

@ImmoStanke
Copy link
Contributor Author

Testing this was a bit tricky, but this should do it.

@flosell
Copy link
Owner

flosell commented Jun 10, 2016

Looks good, merging.

Thanks for the contribution!

@flosell flosell merged commit a148aa4 into flosell:master Jun 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants