From 17122f33d0011656e73440bb88ded051ad2feed1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 7 Sep 2024 13:31:26 +0300 Subject: [PATCH] Feat(update-remotes): Use `git config --get-all` Use `git config --add` to add to the list. This allows to add/remove without copying the entire list. --- update-remotes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-remotes b/update-remotes index 05ce939..5237db9 100755 --- a/update-remotes +++ b/update-remotes @@ -5,8 +5,8 @@ current="`git config --get --path remote.current.url`" || : 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`" || : +branches="`git config --get-all update-remotes.branches`" || : +files="`git config --get-all update-remotes.files`" || : if [ -n "$origin" ]; then if [ -n "$current" ]; then -- 2.39.5