summaryrefslogtreecommitdiff
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-26 08:24:41 (GMT)
commit4e5104c1fc42e440b9f086d428157d45897e1273 (patch)
tree633c2d9a965de57917cb2608d3a9833df63b2611
parentc5ddca1fff44896b7e94801da75392ccc234060c (diff)
downloadgit-4e5104c1fc42e440b9f086d428157d45897e1273.zip
git-4e5104c1fc42e440b9f086d428157d45897e1273.tar.gz
git-4e5104c1fc42e440b9f086d428157d45897e1273.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.] [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>
-rwxr-xr-xgit-remote.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-remote.perl b/git-remote.perl
index c56c5a8..670bafb 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);
}
}