File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,14 @@ __last_error() {
251
251
}
252
252
253
253
# A simple wrapper for rsync.
254
+ # The method is invoked as below:
255
+ #
256
+ # git_xy_rsync \
257
+ # "$src_local_full_path/$src_path" \
258
+ # "$dst_local_full_path/$dst_path" \
259
+ # -rap \
260
+ # $rsync_opts \
261
+ # --exclude=".git/*" \
254
262
git_xy_rsync () {
255
263
rsync " ${@ } "
256
264
}
@@ -384,11 +392,12 @@ git_xy() {
384
392
# FIXED: as we may want to grab some configuration file (rsync_opts)
385
393
# FIXME: Better quoting handle for `rsync_opts`
386
394
# shellcheck disable=SC2086
387
- git_xy_rsync -rap \
388
- $rsync_opts \
389
- --exclude=" .git/*" \
395
+ git_xy_rsync \
390
396
" $src_local_full_path /$src_path " \
391
397
" $dst_local_full_path /$dst_path " \
398
+ -rap \
399
+ $rsync_opts \
400
+ --exclude=" .git/*" \
392
401
|| {
393
402
last_error=" ERROR: Failed to executed rsync command."
394
403
continue
You can’t perform that action at this time.
0 commit comments