Merge pull request #11841 from eparis/commit-speed

Speedups for precommit hooks
This commit is contained in:
CJ Cullen
2015-08-11 12:58:58 -07:00
34 changed files with 504 additions and 301 deletions

View File

@@ -19,7 +19,6 @@
kube::etcd::start() {
local host=${ETCD_HOST:-127.0.0.1}
local port=${ETCD_PORT:-4001}
local testhost=${ETCD_PUBLIC_HOST:-localhost}
which etcd >/dev/null || {
kube::log::usage "etcd must be in your PATH"

View File

@@ -171,7 +171,11 @@ kube::util::gen-doc() {
done <"${dest}/.files_generated"
# put the new generated file into the destination
find "${tmpdir}" -exec rsync -pt {} "${dest}" \; >/dev/null
# the shopt is so that we get .files_generated from the glob.
shopt -s dotglob
cp -af "${tmpdir}"/* "${dest}"
shopt -u dotglob
#cleanup
rm -rf "${tmpdir}"
}