Skip to content

git-lfs not found/usable/configured correctly in Python image(s), preventng any git action #382

@rugk

Description

@rugk

STR

Create a devcontainer based on this branch: rugk/neotaste_scraper#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, gitonly 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions