From: Pavel Roskin Date: Wed, 21 Feb 2007 05:03:36 +0000 (-0500) Subject: git-remote: support remotes with a dot in the name X-Git-Tag: v1.5.1-rc1~261 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b5a40a57240cc292c32e691d3b3c550f6cf8d98c;p=git.git 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.] Signed-off-by: Pavel Roskin Signed-off-by: Junio C Hamano --- diff --git a/git-remote.perl b/git-remote.perl index 61244e978..bd70bf1dd 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); } }