# BUG: "git checkout -q -b foo origin/foo" is not quiet

4 messages from 2017-02-03 to 2017-02-06. Participants: Kevin Layer, Cornelius Weig.
Thread: https://gitlist.dev/t/45036

## Kevin Layer, 2017-02-03 18:20

Subject: BUG: "git checkout -q -b foo origin/foo" is not quiet
Message-ID: <CAGSZTjKywt28Pq7S+Hidi0XeseDxUAMEorrspZQ6jb50yic3+g@mail.gmail.com>
URL: https://gitlist.dev/e/CAGSZTjKywt28Pq7S%2BHidi0XeseDxUAMEorrspZQ6jb50yic3%2Bg%40mail.gmail.com

```
$ git checkout -q -b foo origin/foo
Branch foo set up to track remote branch foo from origin.

I said -q because I didn't want *any* output.

I looked at the git sources, on the maint branch, and it appears to
still be the case.
I see this behavior on 1.7.1.

Kevin

```

## Kevin Layer, 2017-02-03 21:36

Subject: Re: BUG: "git checkout -q -b foo origin/foo" is not quiet
Message-ID: <CAGSZTjLrdYJHixsUz0ha6=E263Z-vQuA11Oq=UNSVZfOmHkRuA@mail.gmail.com>
URL: https://gitlist.dev/e/CAGSZTjLrdYJHixsUz0ha6%3DE263Z-vQuA11Oq%3DUNSVZfOmHkRuA%40mail.gmail.com
In-Reply-To: <CAGSZTjKywt28Pq7S+Hidi0XeseDxUAMEorrspZQ6jb50yic3+g@mail.gmail.com>

```
Note that git version 1.8.3.1 is quiet and does not print the
"tracking remote" message.

On Fri, Feb 3, 2017 at 10:20 AM, Kevin Layer <layer@known.net> wrote:
> $ git checkout -q -b foo origin/foo
> Branch foo set up to track remote branch foo from origin.
>
> I said -q because I didn't want *any* output.
>
> I looked at the git sources, on the maint branch, and it appears to
> still be the case.
> I see this behavior on 1.7.1.
>
> Kevin

```

## Cornelius Weig, 2017-02-04 00:55

Subject: Re: BUG: "git checkout -q -b foo origin/foo" is not quiet
Message-ID: <3bd29833-8fb2-5097-f735-6a3f61e678bf@tngtech.com>
URL: https://gitlist.dev/e/3bd29833-8fb2-5097-f735-6a3f61e678bf%40tngtech.com
In-Reply-To: <CAGSZTjLrdYJHixsUz0ha6=E263Z-vQuA11Oq=UNSVZfOmHkRuA@mail.gmail.com>

```
On 02/03/2017 10:36 PM, Kevin Layer wrote:
> Note that git version 1.8.3.1 is quiet and does not print the
> "tracking remote" message.

So what you are saying is, that git v1.8.3.1 *is* quiet, but v1.7.1 is
not? Sounds like a fixed bug to me.

I also checked with the latest version and it did not print anything
when used with -q.


You seem to urgently need quiet branch creation. Have you thought about
dumping unwanted output in the shell? E.g. in bash

$ git whatever >&/dev/null

```

## Kevin Layer, 2017-02-06 16:38

Subject: Re: BUG: "git checkout -q -b foo origin/foo" is not quiet
Message-ID: <CAGSZTjLKtpFRw5d28m88kSzq+_eFH=Sggk408eNJdBw47Fa9=Q@mail.gmail.com>
URL: https://gitlist.dev/e/CAGSZTjLKtpFRw5d28m88kSzq%2B_eFH%3DSggk408eNJdBw47Fa9%3DQ%40mail.gmail.com
In-Reply-To: <3bd29833-8fb2-5097-f735-6a3f61e678bf@tngtech.com>

```
Yeah, my bad.  I was confused.  Sorry for the noise.

On Fri, Feb 3, 2017 at 4:55 PM, Cornelius Weig
<cornelius.weig@tngtech.com> wrote:
> On 02/03/2017 10:36 PM, Kevin Layer wrote:
>> Note that git version 1.8.3.1 is quiet and does not print the
>> "tracking remote" message.
>
> So what you are saying is, that git v1.8.3.1 *is* quiet, but v1.7.1 is
> not? Sounds like a fixed bug to me.
>
> I also checked with the latest version and it did not print anything
> when used with -q.
>
>
> You seem to urgently need quiet branch creation. Have you thought about
> dumping unwanted output in the shell? E.g. in bash
>
> $ git whatever >&/dev/null

```
