Merge pull request #34553 from jbeda/rsync-delete

Automatic merge from submit-queue

Add --delete flag when rsyncing into container.

If you delete a source file, we want to reflect that in the build container.  We
only use --delete going that one way as we don't want to accidentally delete
files in the user's source tree.
This commit is contained in:
Kubernetes Submit Queue 2016-10-11 17:28:03 -07:00 committed by GitHub
commit 9c5cb27f53

View File

@ -669,6 +669,7 @@ function kube::build::sync_to_container() {
V=6 kube::log::status "Running rsync"
rsync ${rsync_extra} \
--archive \
--delete \
--prune-empty-dirs \
--password-file="${LOCAL_OUTPUT_BUILD_CONTEXT}/rsyncd.password" \
--filter='- /.git/' \