Skip to content

panic if a campaign fetched from the cache has multiple commits#293

Merged
chrispine merged 1 commit into
mainfrom
cp/campaigns_panic_on_multi_commit
Aug 31, 2020
Merged

panic if a campaign fetched from the cache has multiple commits#293
chrispine merged 1 commit into
mainfrom
cp/campaigns_panic_on_multi_commit

Conversation

@chrispine

Copy link
Copy Markdown

At some point in the future, we may support campaigns having multiple commits. At the moment, however, we do not. This PR causes src-cli to panic if it finds multiple commits.

This also allows the situation where a result from the cache would have zero commits, which should be acceptable.

@chrispine chrispine requested a review from a team August 28, 2020 17:38
@chrispine chrispine merged commit bda7607 into main Aug 31, 2020
@chrispine chrispine deleted the cp/campaigns_panic_on_multi_commit branch August 31, 2020 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants