Fix update-mocks to use better globs

This was fixed in other update scripts, but this one was already merged.
This commit is contained in:
Tim Hockin 2023-01-23 09:19:09 -08:00
parent a58e899392
commit c3e0a0a0b3
No known key found for this signature in database

View File

@ -49,8 +49,10 @@ function git_find() {
# modified and untracked files because this might be running against code
# which is not tracked by git yet.
git ls-files -cmo --exclude-standard \
':!:vendor/*' \
':!:third_party/*' \
':!:vendor/*' `# catches vendor/...` \
':!:*/vendor/*' `# catches any subdir/vendor/...` \
':!:third_party/*' `# catches third_party/...` \
':!:*/third_party/*' `# catches third_party/...` \
':!:*/testdata/*' \
"$@"
}