Skip to content

Commit

Permalink
git-remote: support remotes with a dot in the name
Browse files Browse the repository at this point in the history
[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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Pavel Roskin authored and Junio C Hamano committed Feb 26, 2007
1 parent c5ddca1 commit 4e5104c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-remote.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 4e5104c

Please sign in to comment.