summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2020-12-01 14:52:47 -0700
committerAaron Ball <nullspoon@oper.io>2020-12-01 14:54:04 -0700
commit1ea1eb6e699a2d0e9eb9c90b8f3ccfe924742aa5 (patch)
tree65d8e42e1a6accd05bedb84004df8ad18a330d31
parent58279185575f400b01529e9e2b2c6f1001723b4a (diff)
downloadcrux-ports-arm64-1ea1eb6e699a2d0e9eb9c90b8f3ccfe924742aa5.tar.gz
crux-ports-arm64-1ea1eb6e699a2d0e9eb9c90b8f3ccfe924742aa5.tar.xz
post-receive: use rsync rather than delete and copy
-rw-r--r--hooks/post-receive2
1 files changed, 1 insertions, 1 deletions
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[@]}

Generated by cgit