From d501c45da1d52dd59e50c99f672eb18213ba4031 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 20 Aug 2024 16:31:35 +0300 Subject: [PATCH] Feat(update-remotes): Get additional files to sync from `.git/config` --- update-remotes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5