Fully resolve "keep recloning" bug
Created by: emchap
Steps to reproduce:
This stems from a conversation with @unknwon about https://github.com/sourcegraph/sourcegraph/issues/10274 . He suggested that the solution to that issue would confined the bug to off-hours but may not fully resolve it, and it was suggested that a new issue be recreated.
See also https://github.com/sourcegraph/sourcegraph/issues/5056 and https://sourcegraph.slack.com/archives/C0W2E592M/p1626417583101700?thread_ts=1626104961.005400&cid=C0W2E592M
Expected behavior:
No clone loop.
Actual behavior:
Clone loop.