-
Notifications
You must be signed in to change notification settings - Fork 412
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
bug: not all git remotes are called "origin" #602
Comments
Haven't tested it, but this should fix it. Let me know if it doesn't |
#5af9380 isn't a full fix, the lazy.nvim/lua/lazy/manage/task/git.lua Line 145 in 1407565
|
sorry, but this is out of scope for lazy. I'm not going to spend more time on this. Not something a lot of people will use anyway |
I got hit by this issue yesterday when setting up It seems overly fragile to require that the remote is called origin. It's not at all unusual for a forked repo to have both an |
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.0-dev-f43fa30
Operating system/version
macOS 13
Describe the bug
Actions involving plugin git repositories don't work after initial clone because
lazy
is hardcoded to look for a remote called "origin"lazy.nvim/lua/lazy/manage/git.lua
Lines 198 to 200 in 0f713b2
I have a git config a custom remote name, which causes issues with updating, syncing etc.
Steps To Reproduce
git config --global clone.defaultRemoteName upstream
<cmd>Lazy<cr>
C
for Check...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/git.lua:137: attempt to concatenate local 'origin' (a nil value)
git config --global --unset clone.defaultRemoteName
Expected Behavior
Lazy can update, sync, and check plugins without errors
Repro
The text was updated successfully, but these errors were encountered: