Skip to content
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

git_path is wrong when inside a git worktree #1474

Open
entropitor opened this issue Sep 11, 2024 · 0 comments
Open

git_path is wrong when inside a git worktree #1474

entropitor opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@entropitor
Copy link

Description

When you are developing code inside a git worktree, repo's git_path is wrong leading to not showing rebase in progress

return Path:new(self.git_root):joinpath(".git", ...)
is just referencing .git/ while if .git is a file, it should read the gitDir from it and return that

Neovim version

NVIM v0.11.0-nightly+9570ad2
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

Operating system and version

macOS

Steps to reproduce

Open Neogit in a git worktree while a rebase is in progress (rebase will not be shown)

Expected behavior

Rebase is shown in Neogit

Actual behavior

Rebase is not shown

Minimal config

Default config is fine
@entropitor entropitor added the bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant