reporsync: ignore .git also as file

.git is just a file for worktree checkout working directories.
This commit is contained in:
Trolli Schmittlauch 2025-12-15 22:36:44 +01:00
parent bfdc36458a
commit 4e8fb63d81

View file

@ -10,7 +10,7 @@
# reset pre-defined variables that are read and manipulated throughout this function # reset pre-defined variables that are read and manipulated throughout this function
unset JUMPHOST unset JUMPHOST
# arrays are bash or zsh specific # arrays are bash or zsh specific
RSYNC_OPTS=("-rlptzv" "--progress" "--delete" "--exclude=.git/" "--exclude=.direnv/" "--exclude=.vscode/" "--exclude=result" "--exclude=channels/" "--exclude=.mypy_cache/" "--exclude=__pycache__") RSYNC_OPTS=("-rlptzv" "--progress" "--delete" "--exclude=.git" "--exclude=.direnv/" "--exclude=.vscode/" "--exclude=result" "--exclude=channels/" "--exclude=.mypy_cache/" "--exclude=__pycache__")
while getopts ':Jj:' OPT; do while getopts ':Jj:' OPT; do
case $OPT in case $OPT in