Skip to content
Snippets Groups Projects
Commit fa72d730f498 authored by Georges Racinet's avatar Georges Racinet
Browse files

gitlab-mirror: recover if latest changeset of published topic can't be found

This condition was an indication of corruption, but refusing the push
currently does much more harm than cleaning up the condition, even
if the cleanup risks itself to turn out wrong.

In the case detailed in heptapod#265, we had a Git repository
inconsistency which we could only reproduce manually by forcing
the Git branch for the topic: the previously know topic head was
both public and not on topic.

Getting `None` in the other call to
`published_topic_latest_hg_sha` can't happen,
but this will have to be refactored for clarity.
parent d89ffa5e2d7e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment