{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/54601","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/54601/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/54601/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/54601/events","html_url":"https://github.com/Microsoft/vscode/issues/54601","id":342429145,"node_id":"MDU6SXNzdWUzNDI0MjkxNDU=","number":54601,"title":"Can't checkout new remote branch locally when two remotes have that same branch","user":{"login":"segevfiner","id":24731903,"node_id":"MDQ6VXNlcjI0NzMxOTAz","avatar_url":"https://avatars0.githubusercontent.com/u/24731903?v=4","gravatar_id":"","url":"https://api.github.com/users/segevfiner","html_url":"https://github.com/segevfiner","followers_url":"https://api.github.com/users/segevfiner/followers","following_url":"https://api.github.com/users/segevfiner/following{/other_user}","gists_url":"https://api.github.com/users/segevfiner/gists{/gist_id}","starred_url":"https://api.github.com/users/segevfiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segevfiner/subscriptions","organizations_url":"https://api.github.com/users/segevfiner/orgs","repos_url":"https://api.github.com/users/segevfiner/repos","events_url":"https://api.github.com/users/segevfiner/events{/privacy}","received_events_url":"https://api.github.com/users/segevfiner/received_events","type":"User","site_admin":false},"labels":[{"id":256129993,"node_id":"MDU6TGFiZWwyNTYxMjk5OTM=","url":"https://api.github.com/repos/Microsoft/vscode/labels/bug","name":"bug","color":"8D6673","default":true},{"id":296835379,"node_id":"MDU6TGFiZWwyOTY4MzUzNzk=","url":"https://api.github.com/repos/Microsoft/vscode/labels/git","name":"git","color":"c5def5","default":false},{"id":256129996,"node_id":"MDU6TGFiZWwyNTYxMjk5OTY=","url":"https://api.github.com/repos/Microsoft/vscode/labels/help%20wanted","name":"help wanted","color":"fef2c0","default":true}],"state":"closed","locked":false,"assignee":{"login":"joaomoreno","id":22350,"node_id":"MDQ6VXNlcjIyMzUw","avatar_url":"https://avatars3.githubusercontent.com/u/22350?v=4","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false},"assignees":[{"login":"joaomoreno","id":22350,"node_id":"MDQ6VXNlcjIyMzUw","avatar_url":"https://avatars3.githubusercontent.com/u/22350?v=4","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode/milestones/8","html_url":"https://github.com/Microsoft/vscode/milestone/8","labels_url":"https://api.github.com/repos/Microsoft/vscode/milestones/8/labels","id":1412124,"node_id":"MDk6TWlsZXN0b25lMTQxMjEyNA==","number":8,"title":"Backlog","description":"Work not yet planned for a specific release.","creator":{"login":"chrisdias","id":1487073,"node_id":"MDQ6VXNlcjE0ODcwNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1487073?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisdias","html_url":"https://github.com/chrisdias","followers_url":"https://api.github.com/users/chrisdias/followers","following_url":"https://api.github.com/users/chrisdias/following{/other_user}","gists_url":"https://api.github.com/users/chrisdias/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdias/subscriptions","organizations_url":"https://api.github.com/users/chrisdias/orgs","repos_url":"https://api.github.com/users/chrisdias/repos","events_url":"https://api.github.com/users/chrisdias/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdias/received_events","type":"User","site_admin":false},"open_issues":2123,"closed_issues":3942,"state":"open","created_at":"2015-11-15T10:30:19Z","updated_at":"2018-09-12T12:46:34Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-07-18T17:50:00Z","updated_at":"2018-09-12T12:46:34Z","closed_at":"2018-09-12T12:46:34Z","author_association":"NONE","body":"<!-- Please search existing issues to avoid creating duplicates. --> \r\n<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->\r\n\r\n<!-- Use Help > Report Issue to prefill these. -->\r\n- VSCode Version: 1.25.1\r\n- OS Version: Ubuntu 16.04.4 amd64\r\n\r\nSteps to Reproduce:\r\n1. Run:\r\n```bash\r\ngit init --bare origin\r\ngit init --bare upstream\r\ngit clone origin clone\r\ncd clone\r\ngit remote add upstream $(readlink -f ../upstream)\r\ntouch hello.txt\r\ngit add hello.txt\r\ngit commit -m \"Initial Commit\"\r\ngit checkout -b hello-text\r\necho 'Hello, World!' > hello.txt\r\ngit add hello.txt\r\ngit commit -m 'Add Hello, World! text'\r\ngit checkout master\r\ngit push -u origin master\r\ngit push -u origin hello-text\r\ngit push upstream master\r\ngit push upstream hello-text\r\ngit branch -D hello-text\r\ncode .\r\n```\r\n2. Execute `Git: Checkout to...` on `origin/hello-text`.\r\n3. You get an error `Git: pathspec 'hello-text' did not match any file(s) known to git.`.\r\n\r\nThe cause is VS Code running: `git checkout q <branch-name>`, which only works when the branch exists *in exactly one remote* (See [git-checkout(1)](https://git-scm.com/docs/git-checkout)), instead of something like: `git checkout -q -t <remote>/<branch>` , or any alternative more verbose/explicit `git checkout` command.\r\n\r\n<!-- Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: Yes\r\n"}}
{"actor":{"display_login":"joaomoreno"}}