From: Oleg Broytman Date: Tue, 20 Aug 2024 13:31:35 +0000 (+0300) Subject: Feat(update-remotes): Get additional files to sync from `.git/config` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d501c45da1d52dd59e50c99f672eb18213ba4031;p=git-scripts.git Feat(update-remotes): Get additional files to sync from `.git/config` --- diff --git a/update-remotes b/update-remotes index 5211f9b..cf09215 100755 --- a/update-remotes +++ b/update-remotes @@ -6,13 +6,14 @@ origin="`git config --get --path remote.origin.url`" || : web="`git config --get --path remote.web.url`" || : remotes="`git config --get update-remotes.remotes`" || : branches="`git config --get update-remotes.branches`" || : +files="`git config --get update-remotes.files`" || : if [ -n "$origin" ]; then if [ -n "$current" ]; then echo "Config error (both origin and current)" >&2 exit 1 else - rsync -ahPv update-remotes "$origin" + rsync -ahPv $files update-remotes "$origin" cd "$origin" exec ./update-remotes fi