bug
This commit is contained in:
parent
16a11c047f
commit
4e11b0f80f
|
@ -1 +1 @@
|
|||
31
|
||||
32
|
||||
|
|
|
@ -1446,10 +1446,10 @@ function cpnovcs() {
|
|||
[ -d "$destdir" ] || mkdir -p "$destdir" || return 1
|
||||
if progexists rsync; then
|
||||
local gitexclude=/.git/
|
||||
if [ "${src%/}" != "$src" ]; then
|
||||
if [ "${src%/}" == "$src" ]; then
|
||||
gitexclude="/$(basename -- "$src")$gitexclude"
|
||||
fi
|
||||
rsync -a ${__CPNOVCS_RSYNC_SLOW:+-c} --exclude CVS --exclude .svn --exclude "$gitexclude" "${__CPNOVCS_RSYNC_ARGS[@]}" "$src" "$destdir/"
|
||||
rsync -a ${__CPNOVCS_RSYNC_SLOW:+-c} --exclude CVS/ --exclude .svn/ --exclude "$gitexclude" "${__CPNOVCS_RSYNC_ARGS[@]}" "$src" "$destdir/"
|
||||
elif [ "${src%/}" != "$src" ]; then
|
||||
__cpdir "$src" "$destdir"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue