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

Shows nothing on repo managed projects #157

Open
stv17 opened this issue Jan 31, 2025 · 2 comments
Open

Shows nothing on repo managed projects #157

stv17 opened this issue Jan 31, 2025 · 2 comments

Comments

@stv17
Copy link

stv17 commented Jan 31, 2025

Hi, thanks for your work on this plugin 👯

I'm growing uncomfortable with GV so I found vim-flog and I'm trying to check it out. However, it's coming up with an empty window. After digging around I found that the issue arises with repo managed projects, which is my day to day context, so that's why I couldn't use this yet. By default the repo tool sets up a symlink in place of the ".git" folder and I think this may be the problem.

In case you want to test this and need to download the repo tool (see https://gerrit.googlesource.com/git-repo):

mkdir ~/.bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
chmod a+rx ~/.bin/repo
PATH="${HOME}/.bin:${PATH}"

Minimal project setup to reproduce:

repo init --manifest-depth=1 -b main -u https://android.googlesource.com/platform/manifest
repo sync hardware/libhardware
cd hardware/libhardware
# .. open nvim and :Flog

And toying around here's another way to reproduce using only git with it's gitdir functionality instead of repo and the symlink (I never do this though, was just testing):

git clone --separate-git-dir libhardware.git https://android.googlesource.com/platform/hardware/libhardware libhardware
cd libhardware
# .. open nvim and :Flog

Note that neither GV or Fugitive have any issue with this. Maybe this discussion gives useful context:

This is my nvim --version:

NVIM v0.10.4-dev-15+gbaaaf6a9e7
Build type: RelWithDebInfo
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info

And I'm using vim-flog on hash 74e52ba4de25eb5f03824d65087750636d795641

@rbong
Copy link
Owner

rbong commented Jan 31, 2025

Thanks for reporting. Since it works in Fugitive, the issue is likely my attempt to replace Fugitive's git dir finding function with my own to make it possible to use Flog with other backends. You will likely have luck with version 55742e2 before this was implemented. I will try to look into this soon.

@stv17
Copy link
Author

stv17 commented Jan 31, 2025

I confirm that everything works OK with vim-flog version 55742e2. I'll try it out, thanks

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

2 participants