Skip to content

Conversation

@nuclearsandwich
Copy link
Contributor

This check has likely never worked as intended. I'm not aware of any case where len() returns a negative nubmer. The described error seems like the intent was to check for an empty list of remotes not a somehow negative number of remotes.

When updating this check, there are several test failures which i have not triaged. It's possible that now-expected behavior is incompatible with this remote check or that our test fixtures need to be updated so they don't cause this error.

This check has likely never worked as intended. I'm not aware of any
case where `len()` returns a negative nubmer. The described error seems
like the intent was to check for an empty list of remotes not a somehow
negative number of remotes.

When updating this check, there are several test failures which  i have
not triaged. It's possible that now-expected behavior is incompatible
with this remote check or that our test fixtures need to be updated so
they don't cause this error.
@nuclearsandwich
Copy link
Contributor Author

FYI @wjwwood in case there was once a valid way for len(remotes) < 0 to be true.

@wjwwood
Copy link
Contributor

wjwwood commented Jun 25, 2025

I can't think of one, likely a bug that prevented us from catching this condition.

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.

3 participants