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

[PATCH] git-remote: support remotes with a dot in the name

From
PRPavel 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);
 		}
 	}
Next: Junio C Hamano
Message 1 of 8 in “git-remote: support remotes with a dot in the name”
  1. git-remote: support remotes with a dot in the namePavel Roskin, Feb 21, 2007
  2. Junio C HamanoFeb 21, 2007
  3. Pavel RoskinFeb 21, 2007
  4. Junio C HamanoFeb 21, 2007
  5. Pavel RoskinFeb 21, 2007
  6. Shawn O. PearceFeb 21, 2007
  7. Junio C HamanoFeb 21, 2007
  8. Theodore TsoFeb 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.