DORMANTno replies

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

From: Pavel Roskin <hidden>
Date: 2016-06-15 22:42:56
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---

 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);
 		}
 	}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help