-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Does not recognize existing git repo #1624
Comments
So... I don't have access to a windows box to try to figure out what's wrong. If you feel like poking around I'd be happy to help, but otherwise there's not much I can do. |
@CKolkey I encountered the same issue, this bug exists in more than just Windows WSL, and my setup is
I performed a binary search on the past commit history, and figured out the last work commit is the one before Since that problem only happend recently, so I guess there must be something that has been changed back and forth. |
Strange that CI seems to work fine, which runs on ubuntu as well. But thanks for narrowing it down - I'll try to find time to figure out whats wrong. |
If you run |
The output from my computer works is:
That doesn't work one's output is:
Maybe some older git version do not support args |
Oh, it's echoing the argument there at the end? Could you check the git version there? |
I just removed that last argument as local cmd = { "git", "-C", dir, "rev-parse", "--git-common-dir" } it works fine! The git versions is 2.34.1(work) and 2.25.1(dosen't work) |
Right on - iirc it's there for worktree support, but I'm sure it could be redone to fix this |
The (previous version, 2.30.0, for reference: https://git-scm.com/docs/git-rev-parse/2.30.0 ) |
Description
Having this issue on windows using WSL(neovim is installed inside of wsl).
Inside of Neovim, when I cd into a folder with a git repo initialized and run
require("neogit").open
I getI enter N and get:
Even tho folder contains .git folder and I actively work on this repo with other tools, repo is 100% valid.
I started testing and found out that neogit can't detect any repo. I create a new folder, init new repo with neogit itself, and nogit prompts me to init it again right away, like there is no repo.
I use neogit on my other linux machine and it works flawlessly.
Neovim version
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713484068
Operating system and version
Windows 10
Steps to reproduce
Expected behavior
I expect to see unstaged changes, recent commits, default dashboard
Actual behavior
Minimal config
The text was updated successfully, but these errors were encountered: