-
Notifications
You must be signed in to change notification settings - Fork 149
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
How to use dugite
with the locally available and configured git executable?
#111
Comments
@kittaakos the back story on this You should be able to do |
Thank you, @shiftkey! I have to try it with the git directory on all three platforms instead. I close this now, and if I encounter any problems, I will reopen this (or a new) ticket. |
I just wanted to confirm, that it works perfectly. Thanks again! |
@kittaakos you're welcome - good luck! |
I am trying to use
dugite
with the local git executable if available, if not, simply fall back to the one shipped with your library.I already have some logic that tries to locate the executable. Let assume, it works correctly on all platforms, and it returns with
/usr/local/bin/git
in my case. When I set the executable path to theLOCAL_GIT_DIRECTORY
environment variable, then theresolveGitBinary
function in thegit-environment
module appends thebin/git
to the path. The execution obviously fails, because git is not available under/usr/local/bin/git/bin/git
.Is there a way to avoid doing that? It would be great, to have an option to set a
LOCAL_GIT_PATH
variable too (or something similar), and if that is present, use that without any modifications. Or did I completely misunderstand how to configure and use a custom git executable fromdugite
?Any feedbacks are much appreciated! Cheers.
The text was updated successfully, but these errors were encountered: