git/list[1] front-page[2] threads[3] people[4] search[5] about
 

fatal: Unable to read current working directory: No error

From
SKSean Krauth <spkrauth@gmail.com>
Date
Oct 27, 2015, 23:29 UTC
Message-ID
<CAPkB0GxPghR9Y7YrB9yYq3rA9XZ2HJGN-sxbQgERGsBA2iOX_Q@mail.gmail.com>
Dear magic git bug solver,

I've encountered a problem and I haven't had any success with my own troubleshooting or googling so I'd appreciate some help. I noticed the issue originally when I changed a file name in windows explorer. I was working on a website and I named my Public folder with a capital P and wrote my file routes as public. So being a little lazy I decided to open windows explorer and rename Public to public. This was after I had used Git Bash to create a local repository. I'm almost positive this action broke Git. The next time I tried to run Git Bash I got an error that I believe said something similar to "fatal build error" or "fatal load error" and Git was really broke.

This seemed like about as good of an excuse as any to update Git. I was running v. 2.5.1-32-bit and so I downloaded v. 2.6.2-32-bit, installed it. And it ran, kinda. I no longer seem to have access to any of my old commits and when I try to "git init" or "git status" I get the above error, "fatal: Unable to read current working directory: No error". This error pops up for anything, even new files that never had a repository.

I'm sorry if this wasn't very well documented or explained, but it kinda caught me off guard. Any thoughts or possible solutions on how to get Git running again would be greatly appreciated.

Sincerely, Sean Krauth

Next: Jeff King
Message 1 of 4 in “fatal: Unable to read current working directory: No error”
  1. Sean KrauthOct 27, 2015
  2. Jeff KingOct 28, 2015
  3. Johannes SchindelinNov 17, 2015
  4. Johannes SchindelinNov 17, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.