-
-
Notifications
You must be signed in to change notification settings - Fork 656
fix the crashes when starting it from .git directory issue #2734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix the crashes when starting it from .git directory issue #2734
Conversation
@extrawurst What’s the expected outcome? Currently, I’m getting the following error message:
In general, I don’t think we should try to replicate the logic for detecting whether we’re in a valid git repository as that is already done by Line 186 in 1d22485
|
I agree |
hmm, that's weird it worked in my testing, i'll try to look again |
I thought of this first, but being in the |
For the special case of opening |
yeah, i do agree with you, but isn't that would be considered a major refactoring? and yes it would improve the error handing system in general but i still can't see a reasonable way to recover from this specific error, you might argue that the error message is kinda enough and we shouldn't add an additional complexity to handle this somewhat rare case, but this PR is meant to address this particular issue (#2732) with no breaking changes although that i do agree that if we just don't panic and display a nice little error message without scaring our users or do something sneaky like in the PR, i don't see it feasible in this scope (Issue/PR) so maybe we could consider this as a temporary solution and open another issue for the more correct solution that would require some more changes (but then if we do remove this hack it might considered as a breaking change) |
Yes, that would be a larger change, but I’d say go for it! 😄 In this particular instance, I think we shouldn’t feel constrained by the initial ticket’s scope, rather we should go for the solution that makes the most sense long-term. Or do you have other concerns that I haven’t addressed yet? |
This Pull Request fixes/closes #2732.
It changes the following:
git
I followed the checklist:
I added unittests(no need)make check
without errors