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>
This commit is contained in:
parent
13e36ec51b
commit
b5a40a5724
@ -67,7 +67,7 @@ sub list_remote {
|
|||||||
$git->command(qw(config --get-regexp), '^remote\.');
|
$git->command(qw(config --get-regexp), '^remote\.');
|
||||||
};
|
};
|
||||||
for (@remotes) {
|
for (@remotes) {
|
||||||
if (/^remote\.([^.]*)\.(\S*)\s+(.*)$/) {
|
if (/^remote\.(\S+?)\.([^.\s]+)\s+(.*)$/) {
|
||||||
add_remote_config(\%seen, $1, $2, $3);
|
add_remote_config(\%seen, $1, $2, $3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user