Merge pull request #115272 from thockin/codegen-mocks-neg-glob

Fix update-mocks to use better globs
This commit is contained in:
Kubernetes Prow Robot 2023-02-20 09:39:49 -08:00 committed by GitHub
commit e29d3229cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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/*' \
"$@"
}