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

Re: [PATCH] gittrack.sh accepts invalid branch names

From
PJPaul Jackson <pj@sgi.com>
Date
Apr 20, 2005, 23:22 UTC
Message-ID
<20050420162234.3ccbf23e.pj@sgi.com>
In-Reply-To
<1114026510.15186.15.camel@dv>
Pavel wrote:
> 	sed -ne "/^$name\t/p" .git/remotes | grep -q .

Consider using the following to look for a match of $name with the first tab separated field of the remotes file (and to avoid using 'grep -q', which is not in all grep's, so far as I know):

	cut -f1 .git/remotes | grep -Fx "$name" >/dev/null
-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@engr.sgi.com> 1.650.933.1373, 1.925.600.0401
Previous: Pavel Roskin
Message 4 of 4 in “gittrack.sh accepts invalid branch names”
  1. gittrack.sh accepts invalid branch namesPavel Roskin, Apr 20, 2005
  2. Petr BaudisApr 20, 2005
  3. Pavel RoskinApr 21, 2005
  4. Paul JacksonApr 20, 2005

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.