Re: [PATCH] gittrack.sh accepts invalid branch names
- From
- Paul 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