Skip to content

Conversation

@cruessler
Copy link
Collaborator

This is a separate PR adding the test case that is also part of #2789, hopefully showing that it fails on master.

I tried marking it with #[should_panic], but then I would have had to refactor the test as the following error message would have forced me to change the return type to () which would have required me to turn all ? into .unwrap(), so I decided to not add the annotation.

error: functions using `#[should_panic]` must return `()`

@extrawurst
Copy link
Collaborator

I am not a huge believer in tests returning Result - whats the upside? Let's change the 3 ? to unwrap and we can should_panic :)

@cruessler cruessler force-pushed the add-failing-test-gix-repo-taking-workdir-into-account branch from d5728e2 to 08384ce Compare November 27, 2025 07:05
@cruessler
Copy link
Collaborator Author

Sure! No objections, works for me. :-)

@extrawurst
Copy link
Collaborator

Awesome!

@extrawurst extrawurst merged commit 8a57155 into gitui-org:master Nov 27, 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