9013147583
When scanning the repository for invalid pointers, we set up a filter with all the paths from .gitattributes for that commit. However, the default behavior of a filter with no paths is to return true for all objects. As a result, if there is no .gitattributes file, or if it contains no filter=lfs lines, then we flag all files in the repository as LFS files and complain about all of them not being pointers. Since this isn't the desired behavior, let's correct it by setting the default behavior of the filter to false and add a test for this case. |
||
---|---|---|
.. | ||
attribute.go | ||
config_test.go | ||
config.go | ||
diff_index_scanner.go | ||
extension.go | ||
gitfilter_clean.go | ||
gitfilter_smudge.go | ||
gitfilter.go | ||
gitscanner_catfilebatch.go | ||
gitscanner_catfilebatchcheck.go | ||
gitscanner_catfilebatchcheckscanner_test.go | ||
gitscanner_index.go | ||
gitscanner_log.go | ||
gitscanner_pointerscanner_test.go | ||
gitscanner_refs.go | ||
gitscanner_remotes.go | ||
gitscanner_tree.go | ||
gitscanner.go | ||
hook.go | ||
lfs_test.go | ||
lfs.go | ||
pointer_test.go | ||
pointer.go | ||
scanner_git_test.go | ||
scanner_test.go | ||
scanner.go | ||
util_generic.go | ||
util_test.go | ||
util.go |