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@xxxxxxx> --- 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); } } - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html