-
Notifications
You must be signed in to change notification settings - Fork 261
fix(deps): Git environment variables would break mini.deps #1968
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
Conversation
ceab772
to
1878d1b
Compare
Thanks for the PR! Although sounds reasonable, I think there might be some environment variables related to So I have couple of questions:
|
Yes, it does solve my issue, and I have tested it locally.
I tested setting those environment variables for Git, and it worked fine both for Let me know what you think. |
The local |
If the user had environment variables related to Git, it would collide with mini.deps functionality
Yes, sorry. I tested both with the environment variables and without to make sure everything worked as it should, but I forgot to change it back to use the variables. |
I see, thanks. Now, with knowledge that this solves your use case, I'll take (later) a closer look if this is okay for regular use cases. I'll also adjust tests myself, as they are quite finicky here :) |
@diego-velez, so after re-educating myself about After experiments with This should now be fixed on latest |
As part of my workflow, I use a Git bare repository. For this, I have a Lua script for Neovim to automatically detect and set up environment variables so that it can work with other Git integration plugins. In particular, I define
vim.env.GIT_WORK_TREE
andvim.env.GIT_DIR
.When I run
DepsUpdate
, the update fails and the remote origin for the git repository that Neovim was set up to follow with the aforementioned environment variables changes to the last plugin I added with mini.deps.This PR aims to fix this issue by explicitly not using any environment variables when running git from mini.deps.