devcontainers / devcontainers/templates
git-lfs not found/usable/configured correctly in Python image(s), preventng any git action
- Dominant language
- Shell
- Stars
- 1.4k
- Forks
- 393
- Avg merge
- 2h 3m
- Merged PRs (30d)
- 1
Description
## STR
Create a devcontainer based on this branch: https://github.com/rugk/neotaste_scraper/pull/19 (it uses the current default suggested image from this template here (`mcr.microsoft.com/devcontainers/python:2-3.14-trixie`).
Then try to commit or push a branch etc.
## What happens
```
$ git push
This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'pre-push' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').
```
When you analyze it further indeed hooks seems the `mcr.microsoft.com/devcontainers/python:2-3.14-trixie` image (or my added extensions?) somehow add gt lfs hooks in `.git/hooks`? Or GitHub itself?
However, for some reason it is not installed, so what is up here?
I never explicitly added git lfs and I also do not need it.
The devcontainer log also shows no indication of it being installed (`lfs` search founds nothing, `git`only unrelated stuff).
## What should happen
I have no idea, either configure/install git lfs in the image?
Or just not configure it at all?
Currently, it's "half-configured" breaking stuff, though.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.