threads / bug / 45627

[BUG?] Issue with branch -avv command

Subject: [BUG?] Issue with branch -avv command

## tl;dr

2 messages between Apr 7, 2017 and Apr 7, 2017.

replies: 1people: 2as markdown or json

diguazhixiu@gmail.com· Apr 7, 2017, 05:08 UTC · lore
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· Apr 7, 2017, 06:32 UTC · re: diguazhixiu@gmail.com · lore

Re: [BUG?] Issue with branch -avv command

On Fri, Apr 07, 2017 at 01:08:23PM +0800, diguazhixiu@gmail.com wrote:
Show 20 quoted lines
> 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

← back to recent threads