Skip to content

Document usage in non-JS languages #357

@makew0rld

Description

@makew0rld

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions