Skip to content

Conversation

@cruessler
Copy link
Collaborator

This is a workaround for #2820. The reported issue is that, under very specific circumstances that involve a symlink and a submodule (see the linked issue for details), the status tab is empty. This is due to the fact that the status iter that collects individual status items exits early when it encounters an error. In that instance, all other status items are discarded and get_status returns just a single error.

This PR changes the iter to discard errors, but log a warning using log::warn! instead. get_status will then report all status items that didn’t error. That could potentially be confusing as the UI will not show any indicator that anything has gone wrong, but that seems an acceptable short-term trade-off, compared to showing nothing at all.

@extrawurst extrawurst added this to the v0.28.1 milestone Dec 29, 2025
@extrawurst
Copy link
Collaborator

@cruessler if there is no more proper solution for the short-term, we should patch release this, no?

@cruessler cruessler marked this pull request as ready for review December 30, 2025 07:24
@cruessler
Copy link
Collaborator Author

@cruessler if there is no more proper solution for the short-term, we should patch release this, no?

Yes, I agree!

@extrawurst extrawurst merged commit 7f9aa97 into gitui-org:master Dec 31, 2025
22 checks passed
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