From c3e0a0a0b346ba965aaedca9e0f0b0ec8e7f6521 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Mon, 23 Jan 2023 09:19:09 -0800 Subject: [PATCH] Fix update-mocks to use better globs This was fixed in other update scripts, but this one was already merged. --- hack/update-mocks.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hack/update-mocks.sh b/hack/update-mocks.sh index afa7a53fcd1..7ab7f2e3412 100755 --- a/hack/update-mocks.sh +++ b/hack/update-mocks.sh @@ -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/*' \ "$@" }