From: Bart Trojanowski <bart@jukie.net>
To: git@vger.kernel.org
Subject: Re: [PATCH 1.5.0.1.37] fix git-remote inconsistent about use of dots in remote names
Date: Wed, 21 Feb 2007 03:54:22 -0500 [thread overview]
Message-ID: <20070221085422.GF23952@jukie.net> (raw)
In-Reply-To: <20070221083042.GE23952@jukie.net>
After testing some more I noticed that I broke git-remote show.
> --- 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\.(.+)\.url\s+(.*)$/) {
The patch bellow seems to be better.
-Bart
>From 9cb44ff2d1d395491cde8c3d5787b35c93c4ad12 Mon Sep 17 00:00:00 2001
From: Bart Trojanowski <bart@jukie.net>
Date: Wed, 21 Feb 2007 03:54:17 -0500
Subject: [PATCH] allow git-remote to parse out names with periods in them
Signed-off-by: Bart Trojanowski <bart@jukie.net>
---
git-remote.perl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-remote.perl b/git-remote.perl
index 6e473ec..6087a9d 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+(.*)$/) {
add_remote_config(\%seen, $1, $2, $3);
}
}
--
1.5.0.1.37.g1e592-dirty
next prev parent reply other threads:[~2007-02-21 8:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-21 8:30 [PATCH 1.5.0.1.37] fix git-remote inconsistent about use of dots in remote names Bart Trojanowski
2007-02-21 8:54 ` Bart Trojanowski [this message]
2007-02-21 9:21 ` Junio C Hamano
2007-02-21 10:04 ` Bart Trojanowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070221085422.GF23952@jukie.net \
--to=bart@jukie.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).