actions / actions/checkout

LFS option is incompatible with custom hooks.

Open
#274 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.9k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the checkout action with lfs: true, custom hooks, and a persistent action runner. Inspect the Git LFS installation step and compare the proposed skip-install and manual-hook approaches; done means LFS checkout works without overwriting existing custom hooks.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github-actions, typescript
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.