You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
isDetachedHead parses git status output and looks for "HEAD detached at" Obviously, this fails for any non-english locale. I don't want to be a dick, but this is insanely brittle 😏
A possible improvement would be resetting LANG before running git. An even better solution would be checking the contents of .git/HEAD — this would avoid breakage from future changes of this message. I can provide a pull request if any of these changes would be OK with you.
The text was updated successfully, but these errors were encountered:
😄 I was just trying to take the edge away from "insanely brittle". Anyway, the fix is easy enough, if you like, I can implement it and file a pull request.
isDetachedHead parses
git status
output and looks for "HEAD detached at" Obviously, this fails for any non-english locale. I don't want to be a dick, but this is insanely brittle 😏A possible improvement would be resetting
LANG
before running git. An even better solution would be checking the contents of.git/HEAD
— this would avoid breakage from future changes of this message. I can provide a pull request if any of these changes would be OK with you.The text was updated successfully, but these errors were encountered: