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

LFS option is incompatible with custom hooks. #274

Open
rickvanprim opened this issue Jun 11, 2020 · 4 comments
Open

LFS option is incompatible with custom hooks. #274

rickvanprim opened this issue Jun 11, 2020 · 4 comments

Comments

@rickvanprim
Copy link

In a persistent action runner where the repo isn't recreated every time, if custom hooks are used, the checkout action with lfs: true fails because git lfs install --local errors due to not wanting to overwrite the custom hooks.

Possible fixes that come to mind are an option to skip git lfs install or having the option to not install hooks via running git lfs install --local --manual instead.

@elect86
Copy link

elect86 commented Apr 29, 2021

Hey James,

sorry for the ot, but how can you make the runner persistent in order to not re-clone the repo every single time?

Thanks in advance

@rickvanprim
Copy link
Author

Hey Giuseppe,

I'm not sure what you're asking? This is with self hosted runners and persistent repositories. If memory serves, git lfs install --local is run every time prior to checkout.

James

@fentas
Copy link

fentas commented Apr 23, 2022

Having the same error (on self-hosted runner).
As soon checkout job is executed the second time it will fail because of this.

@yayahassani
Copy link

I have the same problem with lfs:true option and self-hosted runnder.

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

4 participants