Skip to content

Fix IndexError when local branch has no upstream counterpart#119

Merged
hannahlanzrath merged 1 commit intomainfrom
fix/missing_upstream_branch
Feb 25, 2026
Merged

Fix IndexError when local branch has no upstream counterpart#119
hannahlanzrath merged 1 commit intomainfrom
fix/missing_upstream_branch

Conversation

@schmoelder
Copy link
Contributor

This PR fixes an issue that is caused if push = False. Since we now always update the output repo when loading results, it checks for updates which crashes if the current branch does not exist upstream. But since we didn't push, it cannot exist. Here, we treat an non-existing branch as not having updates upstream.

@hannahlanzrath hannahlanzrath merged commit a61f296 into main Feb 25, 2026
5 checks passed
@hannahlanzrath hannahlanzrath deleted the fix/missing_upstream_branch branch February 25, 2026 14:05
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.

2 participants