-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix crash in git.detached when ref is a commit ID #34372
Conversation
@terminalmage This is your code, I believe. Could you please take a look? |
No, this state was added in January in ca0c8ef, I've never seen it before. It looks like a reasonable fix, but I need to check the availability of the |
Was referring to the exec mod, which was yours. Should have looked at the state too. My bad. |
To be honest, I'm not sure why |
Actually, I read the past commentary on this and I understand now the reasoning-- to keep a revision which we know will be a detached head from having to go through all the additional overhead the git.latest state uses to determine which branch to use, whether the change is a fast-forward, etc. |
OK, so The thing is, |
#34462 contains @erikgrinaker's first commit, made against the 2015.8 release branch, along with an additional commit I added to restrict usage of #34463 contains @erikgrinaker's second commit, made against the 2016.3 release branch. Thanks @erikgrinaker for taking the time to submit these. And bonus points for making your changes atomic using separate commits, it made it that much easier to get these fixes submitted to the proper branches. |
Thanks for the review and merge, @terminalmage! |
No problem, thanks again for contributing! |
What does this PR do?
Fix
git.detached
crash due to missingcwd
parameter forgit.describe
, and subsequent failure due to missing--always
parameter ingit.describe
. I'm not sure if the--always
parameter will break any unrelated code.What issues does this PR fix or reference?
See #34371 for details.
Tests written?
No