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

Unable to read worktree status from a git-for-windows repo #1

Open
SirIntellegence opened this issue Jan 28, 2023 · 0 comments
Open

Comments

@SirIntellegence
Copy link
Owner

For most information, see the original at romkatv#352. This is so I have an open issue for Bounty source to use. Primary summary is as follows:

Git worktree allows you to have a single .git dir for multiple working copies. After running the debug commands at romkatv/powerlevel10k#1428 (comment), it appears that worktrees are supported, but gitstatusd is having issues with .git reference.
To avoid complications with other windows processes, I am using git-for-windows. This means that the paths are Windows paths instead of Unix paths. This is what I found in the debug output:

[2022-10-05 10:09:09 0000000800000010 INFO src/gitstatus.cc:201] Processing request: "1664986149.0720443726 _p9k_vcs_resume 0" for "/cygdrive/g/Programs/<redacted>/master" [no-diff]
[2022-10-05 10:09:09 0000000800000010 ERROR src/repo_cache.cc:125] workdir.front() == '/' && workdir.back() == '/': "G:/Programs/<redacted>/master/"
[2022-10-05 10:09:09 0000000800000010 INFO src/response.cc:69] Replying without git status
[2022-10-05 10:09:09 0000000800000010 INFO src/timer.cc:67] Timing for: request: 16ms cpu, 10.6034ms wall
[2022-10-05 10:09:09 0000000800000010 ERROR src/gitstatus.cc:206] Error processing request: "1664986149.0720443726 _p9k_vcs_resume 0" for "/cygdrive/g/Programs/<redacted>/master" [no-diff]

I don't know if this is fixed for newer versions or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant