[PATCH] git-remote: support remotes with a dot in the name
- From
- Pavel Roskin <proski@gnu.org>
- Date
- Feb 21, 2007, 05:03 UTC
- Message-ID
- <20070221050336.26431.46485.stgit@dv.roinet.com>
Ignore configuration data other that "url" and "fetch" for the remote. We cannot process it to extract the remote name from it reliably. Besides, a remote without "url" is currently invalid, so we are not missing anything.
Signed-off-by: Pavel Roskin <proski@gnu.org> ---
git-remote.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-remote.perl b/git-remote.perl index 6e473ec..97b5f6c 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*)\.(fetch|url)\s+(.*)$/) { add_remote_config(\%seen, $1, $2, $3); } }