@matheusbsbs / matheus-bagliano / commits / 4e5104c1fc
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.] [jc: cherry-picked from 'master', since people seem to be reinventing this many times.] 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 4e5104c1fc42e440b9f086d428157d45897e1273
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 }