summaryrefslogtreecommitdiff
path: root/git-remote.perl
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-02-21 05:03:36 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-02-21 08:07:24 (GMT)
commitb5a40a57240cc292c32e691d3b3c550f6cf8d98c (patch)
tree216d38808803fb0f5485a6396cf6e7a04c541ef3 /git-remote.perl
parent13e36ec51bee59c6433322b23323b75e9a635d35 (diff)
downloadgit-b5a40a57240cc292c32e691d3b3c550f6cf8d98c.zip
git-b5a40a57240cc292c32e691d3b3c550f6cf8d98c.tar.gz
git-b5a40a57240cc292c32e691d3b3c550f6cf8d98c.tar.bz2
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>
Diffstat (limited to 'git-remote.perl')
-rwxr-xr-xgit-remote.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-remote.perl b/git-remote.perl
index 61244e9..bd70bf1 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);
}
}