mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-24 19:38:02 +00:00
Avoid rsync of .git directory
We don't really need the .git directory to be transferred. This problem was introduced in the PR: "Run the update-staging-godeps script inside a docker container" Fixes #50272
This commit is contained in:
@@ -87,6 +87,15 @@ function diffGodepManifest() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Create a fake git repo for staging to prevent godeps from complaining
|
||||
pushd "${KUBE_ROOT}" >/dev/null
|
||||
git init >/dev/null
|
||||
git config --local user.email "nobody@k8s.io"
|
||||
git config --local user.name "$0"
|
||||
git add . >/dev/null
|
||||
git commit -q -m "Snapshot" >/dev/null
|
||||
popd >/dev/null
|
||||
|
||||
# move into staging and save the dependencies for everything in order
|
||||
mkdir -p "${TMP_GOPATH}/src/k8s.io"
|
||||
for repo in $(ls ${KUBE_ROOT}/staging/src/k8s.io); do
|
||||
|
Reference in New Issue
Block a user