From 2582f1f36889768b1142ea4d4c654ef4d9bf4c11 Mon Sep 17 00:00:00 2001 From: Joe Beda Date: Tue, 11 Oct 2016 10:08:16 -0700 Subject: [PATCH] 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. --- build/common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build/common.sh b/build/common.sh index 791513358b6..f3e0fd90626 100755 --- a/build/common.sh +++ b/build/common.sh @@ -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/' \