{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/65160","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/65160/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/65160/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/65160/events","html_url":"https://github.com/Microsoft/vscode/issues/65160","id":391465930,"node_id":"MDU6SXNzdWUzOTE0NjU5MzA=","number":65160,"title":"Git integration stops working with a custom WSL automount point in /etc/wsl.conf","user":{"login":"nickjj","id":813219,"node_id":"MDQ6VXNlcjgxMzIxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/813219?v=4","gravatar_id":"","url":"https://api.github.com/users/nickjj","html_url":"https://github.com/nickjj","followers_url":"https://api.github.com/users/nickjj/followers","following_url":"https://api.github.com/users/nickjj/following{/other_user}","gists_url":"https://api.github.com/users/nickjj/gists{/gist_id}","starred_url":"https://api.github.com/users/nickjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickjj/subscriptions","organizations_url":"https://api.github.com/users/nickjj/orgs","repos_url":"https://api.github.com/users/nickjj/repos","events_url":"https://api.github.com/users/nickjj/events{/privacy}","received_events_url":"https://api.github.com/users/nickjj/received_events","type":"User","site_admin":false},"labels":[{"id":296835379,"node_id":"MDU6TGFiZWwyOTY4MzUzNzk=","url":"https://api.github.com/repos/Microsoft/vscode/labels/git","name":"git","color":"c5def5","default":false}],"state":"open","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":null,"comments":0,"created_at":"2018-12-16T13:11:10Z","updated_at":"2018-12-17T08:36:38Z","closed_at":null,"author_association":"NONE","body":"- VSCode Version: Insiders 1.31 (but it happened with earlier releases too)\r\n- OS Version: Windows 18.09 Pro stable release\r\n\r\nI just want to preface this with VSCode's Git does work with Git installed inside of WSL, without needing Git installed on Windows directly as long as you use the default WSL `/mnt` point. It will detect git and you'll get all of the sidebar highlights and full integration, etc..\r\n\r\nBut all of that falls apart if you mount to something other than `/mnt`, however it's really important to mount to `/` to get Docker volumes to work, so mounting to `/` is very much something people are doing.\r\n\r\n#### Steps to Reproduce:\r\n\r\n1. Set a custom mount point in `/etc/wsl.conf`\r\n2. Logout and back in from Windows to activate the new mount\r\n\r\nFor example, here's my `wsl.conf`:\r\n\r\n```\r\n[automount]\r\nroot = /\r\noptions = \"metadata\"\r\n```\r\n\r\nAnd the output of `mount -t drvfs`:\r\n\r\n```\r\nmount -t drvfs\r\nC: on /c type drvfs (rw,noatime,uid=1000,gid=1000,metadata,case=off)\r\nD: on /d type drvfs (rw,noatime,uid=1000,gid=1000,metadata,case=off)\r\nE: on /e type drvfs (rw,noatime,uid=1000,gid=1000,metadata,case=off)\r\nF: on /f type drvfs (rw,noatime,uid=1000,gid=1000,metadata,case=off)\r\nG: on /g type drvfs (rw,noatime,uid=1000,gid=1000,metadata,case=off)\r\n```\r\n\r\nAt this point Git stops working inside of VSCode because it can no longer find a git repo. If you goto the output window for Git it says:\r\n\r\n```\r\nfatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n```\r\n\r\n#### Steps to attempt to fix this that failed:\r\n\r\nI tried symlinking `/mnt/e` to `/e` but that wasn't enough for it to work. It made no difference."},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/447762906","html_url":"https://github.com/Microsoft/vscode/issues/65160#issuecomment-447762906","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/65160","id":447762906,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Nzc2MjkwNg==","user":{"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},"created_at":"2018-12-17T08:36:38Z","updated_at":"2018-12-17T08:36:38Z","author_association":"MEMBER","body":"/duplicate #9502"}}
{"actor":{"display_login":"joaomoreno"}}