gruntwork-io / fetch

Download files, folders, and release assets from a specific git commit, branch, or tag of public and private GitHub repos.
https://www.gruntwork.io/
MIT License
587 stars 90 forks source link

Does fetch support git-lfs? #94

Open Celthi opened 3 years ago

Celthi commented 3 years ago

Some large files in github are used git-lfs and will the fetch download those files with the real content instead of the pointer file?

brikis98 commented 3 years ago

I'm not sure! We haven't tried it with Git LFS. My guess is that, as fetch calls git clone, it'll probably "just work," but if you have a chance to try it, let us know!

Celthi commented 3 years ago

@brikis98 I had a try and it does not work. The file downloaded is the pointer file like

version https://git-lfs.github.com/spec/v1
oid sha256:**
size 278593866

The git-lfs will need another authentication according to the API.

brikis98 commented 3 years ago

Ah, bummer. Well, PRs to add support are welcome.

Celthi commented 3 years ago

I would like to make this enhancement but it will take some tme.