From 1ffd61518204bdcd457b9fda5a80055adf65bc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Thu, 8 Aug 2019 12:41:53 +0200 Subject: [PATCH] Docker: Returning to rsync --checksum --- tools/docker/scripts/ci_entrypoint.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/docker/scripts/ci_entrypoint.sh b/tools/docker/scripts/ci_entrypoint.sh index ded6abb0fc..db53f401d7 100755 --- a/tools/docker/scripts/ci_entrypoint.sh +++ b/tools/docker/scripts/ci_entrypoint.sh @@ -25,9 +25,10 @@ if [ -n "${GIT_REF}" ]; then elif [ -d /mnt/cp2k ]; then echo -e "\n========== Copying Changed Files ==========" - # Since this is for debugging, we assume the image was built on the same - # host and we can rely on rsync's default algorithm which uses timestamps. - rsync --delete \ + # We can't rely on timestamps as they depend on the git checkout time. + # Hence, we use checksums despite the IO because a full rebuild would be even more costly. + rsync --checksum \ + --delete \ --executability \ --verbose \ --recursive \