Skip to content

Missing git-lfs support #71

@daniil-nedostup

Description

@daniil-nedostup

Description
The image ghcr.io/tektoncd-catalog/git-clone:v1.1.0 does not include the git-lfs package.
Because of this, cloning repositories that contain large files (>100MB) fails silently - the Tekton git-clone task step completes successfully, but the large files are not actually downloaded. This leads to incomplete repositories and unexpected pipeline behavior.

Steps to Reproduce

  • Create a repository with files tracked by Git LFS (e.g., a file larger than 100MB).
  • Run a Tekton pipeline with the git-clone task that uses the image ghcr.io/tektoncd-catalog/git-clone:v1.1.0.
  • Observe that the pipeline step reports success.
  • Check the cloned workspace: the large file is missing or replaced by a pointer file.

Expected Behavior
The repository should be cloned fully, including all large files managed by Git LFS.

Actual Behavior
Large files are not pulled from the repository. Only LFS pointer files are present.

Proposed Solution
Include the git-lfs package in the git-clone image so that cloning repositories with large files works as expected.

Additional Context

  • Image version: ghcr.io/tektoncd-catalog/git-clone:v1.1.0
  • Once git-lfs is installed manually, the problem disappears and large files are cloned correctly.
  • In older images, such as ghcr.io/tektoncd/github.com/tektoncd/pipeline/cmd/git-init:v0.29.0, the git-lfs package was present and this issue did not occur.

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