Commit f03e4f1f authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

no hardcoded excludes (only from file)

parent c4394f84
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2,10 +2,9 @@

rsync -a \
    --exclude-from='/rsync-sync.excludes' \
    --exclude='/.git' \
    --delete-after \
    "${GIT_SYNC_ROOT:-/tmp/git}/${GIT_SYNC_DEST:-sync}/" \
    /sync
    /sync/

if test -n "${RSYNC_SYNC_EXECHOOK_COMMAND}"; then
    /usr/bin/env sh "${RSYNC_SYNC_EXECHOOK_COMMAND}"
+3 −0
Original line number Diff line number Diff line
# Placeholder for your own excludes. Just mount your file into conteiner as /rsync-sync.excludes

## Don't sync git repo directory
/.git/