Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-remote: support remotes with a dot in the name
author
Pavel Roskin
<proski@gnu.org>
Wed, 21 Feb 2007 05:03:36 +0000
(
00:03
-0500)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 21 Feb 2007 08:07:24 +0000
(
00:07
-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.]
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-remote.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
13e36ec
)
diff --git
a/git-remote.perl
b/git-remote.perl
index 61244e978260ecabf9574f00beba8841eba4669a..bd70bf1ddd663db7d0af49b8513fdf234767e422 100755
(executable)
--- 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);
}
}