Skip to content
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

Why does nodegit-lfs require git and git-lfs installed? #30

Open
MMcKester opened this issue Sep 9, 2020 · 1 comment
Open

Why does nodegit-lfs require git and git-lfs installed? #30

MMcKester opened this issue Sep 9, 2020 · 1 comment

Comments

@MMcKester
Copy link

Hello,

I use nodegit for my NodeJS project and would like to add now Git LFS support. So I found nodegit-lfs and the description states:

Nodegit LFS is an extension library used to augment NodeGit with the capability to use git lfs via the command line.
To use this package, you must have git and git lfs installed.

Can anyone explain me the purpose behind this requirement? Nodegit itself works with libgit2, but to use Git LFS I need git and git lfs installed?

Does anyone know how for example GitKraken has solved this to fulfill their Git LFS support? Thanks a lot!

@MMcKester MMcKester changed the title How to use nodegit-lfs with nodegit? Why does nodegit-lfs require git and git-lfs installed? Sep 9, 2020
@xmedeko
Copy link

xmedeko commented Nov 10, 2022

Yes, GitKraken requires to have command line git and git-lfs installed in order to have LFS working, see https://help.gitkraken.com/gitkraken-client/git-lfs/#git-lfs-requirements

The reason is that git-lfs does not provide API through C library, see nodegit/nodegit#914 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants