# [BUG?] Issue with branch -avv command

2 messages from 2017-04-07 to 2017-04-07. Participants: diguazhixiu@gmail.com, Jeff King.
Thread: https://gitlist.dev/t/45627

## diguazhixiu@gmail.com, 2017-04-07 05:08

Subject: [BUG?] Issue with branch -avv command
Message-ID: <CAFQrz2EXJY=f6Yn0SHn0fZf61=hJQFb6t8LO+Dryw0HVf_s0rw@mail.gmail.com>
URL: https://gitlist.dev/e/CAFQrz2EXJY%3Df6Yn0SHn0fZf61%3DhJQFb6t8LO%2BDryw0HVf_s0rw%40mail.gmail.com

```
Hi, all,

I have a problem when I use command 'git branch -avv', the result is
like  below:

  my_test_branch                        d67ab86 fix some problem
* master                                     27c4e0b [origin/master]
Add new file
 See merge request !146g within bucketsa824 Merge branch 'master' into 'master'
  pref                                           060cac2 Fix bug
  remotes/origin/HEAD                 -> origin/master
  remotes/origin/my_test_branch d67ab86 fix some problem
  remotes/origin/master               27c4e0b Add new file
 See merge request !146g within bucketsa824 Merge branch 'master' into 'master'

The message ' See merge request...'  take the place of branch name, so
I have to user 'git branch -a'
to see the corresponding branch name.

Now, is my usage wrong? or is this a problem?

```

## Jeff King, 2017-04-07 06:32

Subject: Re: [BUG?] Issue with branch -avv command
Message-ID: <20170407063222.hh2mifjidq5vrxfg@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20170407063222.hh2mifjidq5vrxfg%40sigill.intra.peff.net
In-Reply-To: <CAFQrz2EXJY=f6Yn0SHn0fZf61=hJQFb6t8LO+Dryw0HVf_s0rw@mail.gmail.com>

```
On Fri, Apr 07, 2017 at 01:08:23PM +0800, diguazhixiu@gmail.com wrote:

> Hi, all,
> 
> I have a problem when I use command 'git branch -avv', the result is
> like  below:
> 
>   my_test_branch                        d67ab86 fix some problem
> * master                                     27c4e0b [origin/master]
> Add new file
>  See merge request !146g within bucketsa824 Merge branch 'master' into 'master'
>   pref                                           060cac2 Fix bug
>   remotes/origin/HEAD                 -> origin/master
>   remotes/origin/my_test_branch d67ab86 fix some problem
>   remotes/origin/master               27c4e0b Add new file
>  See merge request !146g within bucketsa824 Merge branch 'master' into 'master'
> 
> The message ' See merge request...'  take the place of branch name, so
> I have to user 'git branch -a'
> to see the corresponding branch name.
> 
> Now, is my usage wrong? or is this a problem?

Do you perhaps have a commit at the tip of the branch that has a
carriage-return in it? Try piping the output through "cat -A" and look
for "^M" in the output.

-Peff

```
