From: Nicolas Pitre Date: Sun, 04 Feb 2007 02:58:03 GMT Subject: Re: [PATCH 2/2] Let git-checkout always drop any detached head Message-ID: In-Reply-To: OK obviously I can't send proper patches today. On Sat, 3 Feb 2007, Nicolas Pitre wrote: > diff --git a/git-checkout.sh b/git-checkout.sh > index 99b8779..e4cce06 100755 > --- a/git-checkout.sh > +++ b/git-checkout.sh > @@ -164,22 +164,9 @@ If you want to create a new branch from this checkout, you may do so > (now or later) by using -b with the checkout command again. Example: > git checkout -b " > fi > -elif test -z "$oldbranch" && test -n "$branch" > +elif test -z "$oldbranch" && && test -z "$quiet" Of course there is one "&&" too many. Nicolas