From 1ea1eb6e699a2d0e9eb9c90b8f3ccfe924742aa5 Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Tue, 1 Dec 2020 14:52:47 -0700 Subject: post-receive: use rsync rather than delete and copy --- hooks/post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/post-receive b/hooks/post-receive index 6afd48b..674ec8b 100644 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -2,7 +2,7 @@ dest=${WEB}/oper.io.services/crux-ports-arm64 # Copy files from working cache to destination -cp -r ./* ${dest}/ +rsync -av --inplace --exclude hooks --exclude '.git*' ./ ${dest}/ printf '[git] Updating %s\n' ${FILES_E[@]} printf '[git] Removing %s\n' ${FILES_D[@]} -- cgit v1.2.3