jenkinsci / jenkinsci/git-plugin

[JENKINS-43427] git-plugin with both LFS and Sparse checkout behaviour pulls too many files

Open
#3,076 5 comments 0 reactions 0 assignees View on GitHub
component:git-plugin component:pipeline imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

Pipeline build using checkout with a git repo, both sparse checkout and LFS behaviours enabled.

The git lfs pull stage pulls ALL files, it should honor the sparse behaviour configured. This should probably be done by setting git config lfs.fetchinclude 'pathsToInclude'

---
Originally reported by beyerj, imported from: git-plugin with both LFS and Sparse checkout behaviour pulls too many files


  • status: In Review
  • priority: Major
  • component(s): git-plugin, pipeline
  • resolution: Unresolved
  • votes: 5
  • watchers: 8
  • imported: 2025-12-02

Raw content of original issue

Pipeline build using checkout with a git repo, both sparse checkout and LFS behaviours enabled.

The git lfs pull stage pulls ALL files, it should honor the sparse behaviour configured. This should probably be done by setting git config lfs.fetchinclude 'pathsToInclude'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.