-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
After upgrading to Atlantis v0.37.1, git fetch --all fails when processing subsequent pushes to forked repositories that already have local state on disk. The error indicates the head repository (fork) cannot be found, even though it exists and was successfully cloned on the initial plan.
This appears to be a regression introduced in v0.37.1, as the same workflow functioned correctly in previous versions.
Reproduction Steps
- Create a PR from a forked repository to the base repository
- Run
atlantis plan- this succeeds and clones the repository - Force-push an update to the same PR branch
- Atlantis attempts to run
git fetch --allon existing local state - Fetch fails with "repository not found" error for the fork remote
Logs
Logs
``` running git fetch --all: Fetching origin Fetching head remote: Repository not found. fatal: repository 'https://github.com/BitGo/infra.git/' not found error: could not fetch head : exit status 1 ```Environment details
- Atlantis version: v0.37.1
- Deployment method: GitHub App
- If not running the latest Atlantis version have you tried to reproduce this issue on the latest version:
Atlantis server-side config file:
Additional Context
- Issue only occurs on subsequent pushes to the same PR, not on initial plan
- Issue only affects forked repositories
- The fork repository exists and is accessible (verified via browser and git CLI)
- Likely related to how v0.37.1 handles remote configuration for forks with existing local state
dosubot
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working