Skip to content

Conversation

@lukemassa
Copy link
Contributor

@lukemassa lukemassa commented Jan 7, 2026

what

If we cannot find the expected remote in the cloned dir, do not use that clone dir, and instead force a reclone.

why

In order versions of the code we called the remote head. If you have a checkout created by an old version of the code and then run the new code, we don't want it to reuse that repo we want it to do a full reclone

tests

If I create a PR with 0.37.0, then restart w this branch, it'll see the old remote named head but can't find the new remote, which should be called source, and fails. This falls back to a full reclone, which is the simplest thing to do in the situation.

{"level":"error","ts":"2026-01-06T23:58:11.034-0500","caller":"events/working_dir.go:112","msg":"An error occurred attempting to reuse the clone dir, falling back to forced clone. This is likely a bug please report: cannot find remote source

references

Closes: #6065

@lukemassa lukemassa force-pushed the make_sure_remote_exists_before_cloning branch from aa99799 to fe4074a Compare January 7, 2026 05:04
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.

Post 0.38.0 updates to remote fail with no such remote source.

1 participant