]> git.phdru.name Git - git-scripts.git/commitdiff
Feat(update-remotes): Get additional files to sync from `.git/config`
authorOleg Broytman <phd@phdru.name>
Tue, 20 Aug 2024 13:31:35 +0000 (16:31 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 20 Aug 2024 15:08:03 +0000 (18:08 +0300)
update-remotes

index 5211f9b7b27027bf0eef8041d9123a870dd98717..cf09215f3cfeaf773abc187bde3976c9117dead6 100755 (executable)
@@ -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