gitlinker.nvim icon indicating copy to clipboard operation
gitlinker.nvim copied to clipboard

git worktrees don't work

Open kekscode opened this issue 2 years ago • 3 comments

Describe the bug

A clear and concise description of what the bug is:

  • Cloned a repo in --bare and added main branch as git worktree add
  • Hoped the default configuration would work
  • Getting Failed to get closest revision in that exists in remote 'origin' error

To Reproduce

  • Provide a minimal lua configuration that reproduces the bug:

...just the default config with no changes to mappings, callbacks or anything else is fine.

  • Describe the steps to reproduce the behavior:
  1. Do git clone --bare https://github.com/ruifm/gitlinker.nvim && cd gitlinker.nvim.git && git worktree add main
  2. Change to main and open a file there, e.g. README.md
  3. press <leader>gy (default mapping). The error Failed to get closest revision in that exists in remote 'origin' should appear.

Expected behavior Open README.md for main branch of 'ruifm/gitlinker.nvim' on GitHub.

System (please complete the following information):

  • OS: macos
  • git version 2.37.1 (Apple Git-137.1)
  • Neovim:
NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.3/share/nvim"

Run :checkhealth for more info

kekscode avatar Mar 21 '23 18:03 kekscode

hi @kekscode , let's track this issue here: https://github.com/linrongbin16/gitlinker.nvim/issues/107

linrongbin16 avatar Nov 14 '23 04:11 linrongbin16

Is this being worked on?

msharran avatar Nov 15 '23 13:11 msharran

hi @msharran, let's track it here: https://github.com/linrongbin16/gitlinker.nvim/issues/107

linrongbin16 avatar Nov 15 '23 19:11 linrongbin16