From 4e5104c1fc42e440b9f086d428157d45897e1273 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 21 Feb 2007 00:03:36 -0500 Subject: [PATCH] git-remote: support remotes with a dot in the name [jc: the original from Pavel was limiting the variable names to only fetch and url, but I loosened it to take valid variable names.] [jc: cherry-picked from 'master', since people seem to be reinventing this many times.] Signed-off-by: Pavel Roskin Signed-off-by: Junio C Hamano --- git-remote.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-remote.perl b/git-remote.perl index c56c5a84a..670bafb6d 100755 --- a/git-remote.perl +++ b/git-remote.perl @@ -67,7 +67,7 @@ sub list_remote { $git->command(qw(config --get-regexp), '^remote\.'); }; for (@remotes) { - if (/^remote\.([^.]*)\.(\S*)\s+(.*)$/) { + if (/^remote\.(\S+?)\.([^.\s]+)\s+(.*)$/) { add_remote_config(\%seen, $1, $2, $3); } } -- 2.30.2