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

Does not work on symlinked files unless in actual .git directory #48

Open
erikr opened this issue Mar 24, 2021 · 0 comments
Open

Does not work on symlinked files unless in actual .git directory #48

erikr opened this issue Mar 24, 2021 · 0 comments

Comments

@erikr
Copy link
Contributor

erikr commented Mar 24, 2021

Overview

This plugin fails on symlinked files. It only works if the user opens the file from the original directory that contains .git.

Error message

E605: Exception not caught: The remote: zsh:1: no matches found: (or any of the parent directo
ries): has not been recognized as belonging to one of the supported git hosing environments: G
itHub, GitLab, BitBucket, Cgit

Steps to reproduce

  • Git directory is /foo and file inside is /foo/bar.py.
  • Symlink to /foo/bar.py, e.g. ln -s /foo/bar.py ~/bar.py.
  • Open the symlinked file in vim a directory other than /foo, e.g.
    cd ~
    vim ~/bar.py
  • Run <leader>gh.

Proposed fix

TBD

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