Git LFS Issue check incorrectly reports sparsely checked out files as not LFS tracked #715
Labels
Area:IssueProvider:GitRepository
Git repository issue provider
Bug
Hacktoberfest
help wanted
up-for-grabs
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:
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 treeExpected 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 thatS
code files are not included in theallFiles
variable.Hope that helps!
The text was updated successfully, but these errors were encountered: