Skip to content

feat(git): install and initialize git-lfs - #20

Merged
lsimons merged 2 commits into
mainfrom
feat/issue-11-git-lfs
Aug 9, 2026
Merged

feat(git): install and initialize git-lfs#20
lsimons merged 2 commits into
mainfrom
feat/issue-11-git-lfs

Conversation

@lsimons

@lsimons lsimons commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • git/config.template already wires filter.lfs (clean/smudge/process) into every generated global git config, but nothing installed the git-lfs executable or ran the one-time init — so LFS checkouts failed on a machine without git-lfs already present.
  • git/install.py now manages git-lfs as an installed, initialized dependency, following the same install/verify/report pattern already used for git-credential-manager and git-filter-repo: install via Homebrew, then run git lfs install --skip-repo (idempotent — safe to run every time since the filter config is already fully specified by the template).
  • Documented in the README's "What Gets Installed" table.

Closes #11

Test plan

  • python3 script/check.py passes (py_compile, ruff, json, tests, install.py --dry-run across all topics)
  • python3 git/install.py --dry-run shows git-lfs probed as absent, installed, and initialized
  • Verified locally that git lfs install --skip-repo is a genuine no-op once the template-generated config is in place (confirmed via config file diff before/after)
  • Re-run installer on a machine with git-lfs already present to confirm "already installed"/"already initialized" idempotent messages

Assisted-by: Claude:claude-sonnet-5

lsimons and others added 2 commits August 9, 2026 07:44
git/config.template wires filter.lfs into every generated global git
config, but nothing installed the git-lfs executable, so LFS checkouts
failed on machines without it already present. Manage git-lfs the same
way as git-credential-manager and git-filter-repo: install via Homebrew
and run `git lfs install --skip-repo` as the one-time init step,
idempotently.

Closes #11

Co-Authored-By: lsimons-bot <bot@leosimons.com>
Assisted-by: Claude:claude-sonnet-5
`git lfs install --skip-repo` used the default check=True, so any
non-zero exit (e.g. PATH not yet refreshed after a fresh brew install)
raised CalledProcessError and crashed with a bare traceback instead of
the error()/return 1 convention every other step in main() follows.
Also stopped reporting init success unconditionally regardless of the
actual command result.

Co-Authored-By: lsimons-bot <bot@leosimons.com>
Assisted-by: Claude:claude-sonnet-5
@lsimons
lsimons merged commit eb9da63 into main Aug 9, 2026
6 checks passed
@lsimons
lsimons deleted the feat/issue-11-git-lfs branch August 9, 2026 06:15
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

Successfully merging this pull request may close these issues.

design(git): decide whether Git LFS is a managed dependency

1 participant