git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1.5.0.1.37] fix git-remote inconsistent about use of dots in remote names

From
Bart Trojanowski <bart@jukie.net>
Date
Feb 21, 2007, 08:54 UTC
Message-ID
<20070221085422.GF23952@jukie.net>
In-Reply-To
<20070221083042.GE23952@jukie.net>
After testing some more I noticed that I broke git-remote show.
Show 8 quoted lines
> --- 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
Previous: Bart TrojanowskiNext: Junio C Hamano
Message 2 of 4 in “fix git-remote inconsistent about use of dots in remote names”
  1. fix git-remote inconsistent about use of dots in remote namesBart Trojanowski, Feb 21, 2007
  2. Bart TrojanowskiFeb 21, 2007
  3. Junio C HamanoFeb 21, 2007
  4. Bart TrojanowskiFeb 21, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.