git-resource icon indicating copy to clipboard operation
git-resource copied to clipboard

diable_git_lfs:true does not prevent the lfs files being fetched

Open ggeorgiev opened this issue 8 years ago • 3 comments

git repo could be set in a way that git clone automatically fetches the lfs files. The diable_git_lfs flag should be made to prevent this in every situation.

ggeorgiev avatar Jun 15 '17 16:06 ggeorgiev

The tile has the property misspelled diable_git_lfs when it should be disable_git_lfs.

That being said, the default installation of git-lfs has the smudge disabled, which the documentation says will not automatically pull down blobs on a git pull.

I was only looking into this because I am trying to add it to the PR resource.

jtarchie avatar Jun 25 '17 16:06 jtarchie

@jtarchie *title 😉

There's a flag for GIT_LFS_SKIP_SMUDGE=1 that can be set before cloning to skip downloading them. I think part of the confusion of this flag is the naming; it isn't clear exactly what about git lfs is being "disabled"

topherbullock avatar Jun 28 '17 14:06 topherbullock

Hi.

I had the same problem, because I didn't place the flag into the right spot.

Following worked for me:

    - get: source-code
      params:
        disable_git_lfs: true

olliiiver avatar Sep 27 '17 18:09 olliiiver