-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Area:IssueProvider:GitRepositoryGit repository issue providerGit repository issue providerBugHacktoberfesthelp wantedup-for-grabs
Description
Running the GitRepositoryIssuesProvider
LFS issues check against a sparse-checkout Git repo yields files that aren't checked out as erroneously binary non-LFS files.
Steps to reproduce:
- Clone a repository with sparse checkout such that only a single sub-directory in the repo is present on disk
- Run the Git commands
GitRepositoryIssuesProvider
would rungit lfs ls-files -n
yields the binary untracked files correctlygit grep -Ul .
andgit grep -UL .
yield the working filesgit ls-files -z
reports the entire working tree
Expected result:
LFS files are only reported as not tracked if they are actually not tracked
Actual result:
All files not in the current sparse checkout are reported as LFS untracked
Workaround:
None
Possible fix:
Use git ls-files -t -z
and parse the output such that S
code files are not included in the allFiles
variable.
Hope that helps!
Copilot
Metadata
Metadata
Assignees
Labels
Area:IssueProvider:GitRepositoryGit repository issue providerGit repository issue providerBugHacktoberfesthelp wantedup-for-grabs