JavaScript or TypeScript users can just use the dugite package to access these binaries. But it's not clear how to use them in other languages. After looking at this file, I've come up with the following environment variables that need to be set:
# Assuming the dugite folder is in the current directory
export GIT_EXEC_PATH="$(pwd)/libexec/git-core"
export GIT_TEMPLATE_DIR="$(pwd)/share/git-core/templates"
export GIT_SSL_CAINFO="$(pwd)/ssl/cacert.pem"
Once those env vars are set, ./bin/git will be be able to work properly, at least in my experience.
It'd be nice if this could be documented in this repo. Thanks!
JavaScript or TypeScript users can just use the
dugite
package to access these binaries. But it's not clear how to use them in other languages. After looking at this file, I've come up with the following environment variables that need to be set:Once those env vars are set,
./bin/git
will be be able to work properly, at least in my experience.It'd be nice if this could be documented in this repo. Thanks!