Skip to content
Snippets Groups Projects
Commit f03e4f1f authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

no hardcoded excludes (only from file)

parent c4394f84
No related branches found
No related tags found
No related merge requests found
...@@ -2,10 +2,9 @@ ...@@ -2,10 +2,9 @@
rsync -a \ rsync -a \
--exclude-from='/rsync-sync.excludes' \ --exclude-from='/rsync-sync.excludes' \
--exclude='/.git' \
--delete-after \ --delete-after \
"${GIT_SYNC_ROOT:-/tmp/git}/${GIT_SYNC_DEST:-sync}/" \ "${GIT_SYNC_ROOT:-/tmp/git}/${GIT_SYNC_DEST:-sync}/" \
/sync /sync/
if test -n "${RSYNC_SYNC_EXECHOOK_COMMAND}"; then if test -n "${RSYNC_SYNC_EXECHOOK_COMMAND}"; then
/usr/bin/env sh "${RSYNC_SYNC_EXECHOOK_COMMAND}" /usr/bin/env sh "${RSYNC_SYNC_EXECHOOK_COMMAND}"
......
# Placeholder for your own excludes. Just mount your file into conteiner as /rsync-sync.excludes # Placeholder for your own excludes. Just mount your file into conteiner as /rsync-sync.excludes
## Don't sync git repo directory
/.git/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment