summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5ddca1)
raw | patch | inline | side by side (parent: c5ddca1)
author | Pavel Roskin <proski@gnu.org> | |
Wed, 21 Feb 2007 05:03:36 +0000 (00:03 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 26 Feb 2007 08:24:41 +0000 (00:24 -0800) |
[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>
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>
git-remote.perl | patch | blob | history |
diff --git a/git-remote.perl b/git-remote.perl
index c56c5a84a4ac67648efd3c5ccf690e9cb21dd54f..670bafb6d05db7f152f53cac235d4d60c219ee6d 100755 (executable)
--- a/git-remote.perl
+++ b/git-remote.perl
$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);
}
}