All of a sudden i am getting this git error: “”git status –porcelain failed”” when i do a git status…. whats up with that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This error message is found in some similar StackOverflow questions: here, here. Googling brings up a mailing list message with this error. Nobody has given an explanation why it occurs, so I thought I’d add what I’ve found.
Some overview of terminology, from the
man gitpage:From the above posts, it would appear that, when
git statusis run, it callsgit status --porcelain.man git-statushelpfully informs us what the--porcelainflag is for:So the issue you have is related to the
git statuscall, which is by default trying to format its output into something easy to parse.From the above posts, noticably the answers here and the mailing list contentets, I would suggest that, for whatever reason, your git repository has become corrupted. If you’re using submodules, it’s possible one of those has become corrupted – this is relevant because
unless explicitly told not to do so.
As to why you seem to have a corrupted git repository? I don’t know. Several other people on StackOverflow have mentioned overwriting, moving, replacing, or generally fiddling with
.gitdirectories in their repositories. Luckily, you have a backup, though, right? 😉