{"action":"opened","issue":{"url":"https://api.github.com/repos/eamodio/vscode-gitlens/issues/415","repository_url":"https://api.github.com/repos/eamodio/vscode-gitlens","labels_url":"https://api.github.com/repos/eamodio/vscode-gitlens/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/eamodio/vscode-gitlens/issues/415/comments","events_url":"https://api.github.com/repos/eamodio/vscode-gitlens/issues/415/events","html_url":"https://github.com/eamodio/vscode-gitlens/issues/415","id":332237542,"node_id":"MDU6SXNzdWUzMzIyMzc1NDI=","number":415,"title":"branch names mangled by color escapes","user":{"login":"rivy","id":80132,"node_id":"MDQ6VXNlcjgwMTMy","avatar_url":"https://avatars0.githubusercontent.com/u/80132?v=4","gravatar_id":"","url":"https://api.github.com/users/rivy","html_url":"https://github.com/rivy","followers_url":"https://api.github.com/users/rivy/followers","following_url":"https://api.github.com/users/rivy/following{/other_user}","gists_url":"https://api.github.com/users/rivy/gists{/gist_id}","starred_url":"https://api.github.com/users/rivy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rivy/subscriptions","organizations_url":"https://api.github.com/users/rivy/orgs","repos_url":"https://api.github.com/users/rivy/repos","events_url":"https://api.github.com/users/rivy/events{/privacy}","received_events_url":"https://api.github.com/users/rivy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-14T03:15:45Z","updated_at":"2018-06-14T03:15:45Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIf you are encountering an issue that says `See output channel for more details`, please enable output channel logging by setting `\"gitlens.outputLevel\": \"verbose\"` in your settings.json. This will enable logging to the GitLens channel in the Output pane. Once enabled, please attempt to reproduce the issue (if possible) and attach the relevant log lines from the GitLens channel.\r\n-->\r\n\r\n- GitLens Version: 8.3\r\n- VSCode Version: 1.24.0\r\n- OS Version: Microsoft Windows [Version 10.0.16299.431]\r\n\r\n## Description\r\n\r\nbranch names are displayed in mangled form with missing associated commits when git config contains \"color.branch=always\".\r\n\r\n## Steps to Reproduce\r\n\r\n1. enable branch colors on shell command line:\r\n\r\n    ```\r\n    git config --global color.branch always\r\n    ```\r\n\r\n1.  branch names displayed within the \"Branches\" section of the Gitlens explorer will contain color escape codes, eg, \"[32mmaster[m\", and will not show any contained commits.\r\n\r\n## Fix\r\n\r\nUsing the git global option \"-c color.branch=never\" will definitively disable color for the `git branch` command, fixing both issues.\r\n\r\nAddressing possible concerns of generality... by researching the `git` online documentation and Wikipedia, the \"-c ...\" option appears to have been introduced somewhere between the 1.7.0 - 1.7.12.4 versions (being released in the Feb-2010 to Oct-2012 time frame).\r\n\r\nref: https://en.wikipedia.org/wiki/Git#Releases\r\nref: https://git-scm.com/docs/git/1.7.0\r\nref: https://git-scm.com/docs/git/1.7.12.4\r\n\r\n<!--\r\nPR #475 contains a fix.\r\n\r\n*Note:* the fix has only been tested on my machine.\r\n-->"}}
{"actor":{"display_login":"rivy"}}