mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
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:
parent
a58e899392
commit
c3e0a0a0b3
@ -49,8 +49,10 @@ function git_find() {
|
|||||||
# modified and untracked files because this might be running against code
|
# modified and untracked files because this might be running against code
|
||||||
# which is not tracked by git yet.
|
# which is not tracked by git yet.
|
||||||
git ls-files -cmo --exclude-standard \
|
git ls-files -cmo --exclude-standard \
|
||||||
':!:vendor/*' \
|
':!:vendor/*' `# catches vendor/...` \
|
||||||
':!:third_party/*' \
|
':!:*/vendor/*' `# catches any subdir/vendor/...` \
|
||||||
|
':!:third_party/*' `# catches third_party/...` \
|
||||||
|
':!:*/third_party/*' `# catches third_party/...` \
|
||||||
':!:*/testdata/*' \
|
':!:*/testdata/*' \
|
||||||
"$@"
|
"$@"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user