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

Re: git-remote and remotes with '.' in their names

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 28, 2007, 15:10 UTC
Message-ID
<Pine.LNX.4.63.0702281607220.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<45E597CF.9000009@lu.unisi.ch>
Hi,
On Wed, 28 Feb 2007, Paolo Bonzini wrote:
Show 13 quoted lines
> Hello,
> 
> >  	for (@remotes) {
> > -		if (/^remote\.([^.]*)\.(\S*)\s+(.*)$/) {
> > +		if (/^remote\.(.*)\.(\S*)\s+(.*)$/) {
> 
> You probably want either
> 
> +		if (/^remote\.(\S*)\.(\S*)\s+(.*)$/) {
> 
> or
> 
> +		if (/^remote\.(\S*)\.([^.]*)\s+(.*)$/) {

Did you mean to prevent the remote starting with a dot? IMHO that would be a good change, but AFAIS both your proposals don't do that.

Ciao, Dscho

Previous: Paolo BonziniNext: Paolo Bonzini
Message 5 of 6 in “git-remote and remotes with '.' in their names”
  1. Paul CollinsFeb 26, 2007
  2. Jakub NarebskiFeb 26, 2007
  3. Johannes SchindelinFeb 26, 2007
  4. Paolo BonziniFeb 28, 2007
  5. Johannes SchindelinFeb 28, 2007
  6. Paolo BonziniFeb 28, 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.