@matheusbsbs / matheus-bagliano / commits / b5a40a5724
Fork 0

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 <proski@gnu.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Pavel Roskin committed Feb 21, 2007 at 00:03 UTC b5a40a57240cc292c32e691d3b3c550f6cf8d98c
1 file changed +1 -1
git-remote.perl
+1 -1
@@ -67,7 +67,7 @@ sub list_remote {
67 $git->command(qw(config --get-regexp), '^remote\.');
68 };
69 for (@remotes) {
70 - if (/^remote\.([^.]*)\.(\S*)\s+(.*)$/) {
70 + if (/^remote\.(\S+?)\.([^.\s]+)\s+(.*)$/) {
71 add_remote_config(\%seen, $1, $2, $3);
72 }
73 }