{"action":"created","issue":{"url":"https://api.github.com/repos/divmain/GitSavvy/issues/841","repository_url":"https://api.github.com/repos/divmain/GitSavvy","labels_url":"https://api.github.com/repos/divmain/GitSavvy/issues/841/labels{/name}","comments_url":"https://api.github.com/repos/divmain/GitSavvy/issues/841/comments","events_url":"https://api.github.com/repos/divmain/GitSavvy/issues/841/events","html_url":"https://github.com/divmain/GitSavvy/issues/841","id":288200126,"number":841,"title":"Cannot use WSL git.","user":{"login":"milochristiansen","id":6414009,"avatar_url":"https://avatars2.githubusercontent.com/u/6414009?v=4","gravatar_id":"","url":"https://api.github.com/users/milochristiansen","html_url":"https://github.com/milochristiansen","followers_url":"https://api.github.com/users/milochristiansen/followers","following_url":"https://api.github.com/users/milochristiansen/following{/other_user}","gists_url":"https://api.github.com/users/milochristiansen/gists{/gist_id}","starred_url":"https://api.github.com/users/milochristiansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milochristiansen/subscriptions","organizations_url":"https://api.github.com/users/milochristiansen/orgs","repos_url":"https://api.github.com/users/milochristiansen/repos","events_url":"https://api.github.com/users/milochristiansen/events{/privacy}","received_events_url":"https://api.github.com/users/milochristiansen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-01-12T18:00:09Z","updated_at":"2018-02-23T22:07:03Z","closed_at":"2018-01-19T19:47:09Z","author_association":"NONE","body":"- Sublime Text version number: Build 3143\r\n- Git version number: 2.7.4\r\n- OS type and version: Windows 10 build 1709\r\n\r\nThe Windows Subsystem for Linux (WSL) ships with a copy of git. Unfortunately, GitSavvy does not seem to be able to use this version of git.\r\n\r\n    error: Your Git binary cannot be found.  If it is installed, add it to your PATH environment variable, or add a `git_path` setting in the `User/GitSavvy.sublime-settings` file.\r\n\r\nThe error seems to be twofold:\r\n\r\n1. GitSavvy does not try to use WSL git if it cannot find git for Windows.\r\n2. GitSavvy does not transform paths (replace drive letters with \"/mnt/[letter]/\").\r\n\r\nThe first is fairly simple to workaround, just make a batch file that calls `bash.exe -c 'git %*'`, the second is the real issue here. Worse, a simple script to transform paths doesn't quite seem to be enough:\r\n\r\n```\r\n@echo off\r\nsetlocal enabledelayedexpansion\r\n\r\nset find=Y:\\\r\nset replace=/mnt/y/\r\ncall set command=%%command:!find!=!replace!%%\r\nset find=\\\r\nset replace=/\r\ncall set command=%%command:!find!=!replace!%%\r\n\r\n::echo %command%\r\n\r\nbash.exe -c 'git %command%'\r\n```\r\n\r\nThis produces correct paths (for `Y:\\`), but git reports:\r\n\r\n```\r\nfatal: Not a git repository (or any parent up to mount point /mnt/c)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n```\r\n\r\nI really, really do not want to install git for Windows. One install is bad enough."},"comment":{"url":"https://api.github.com/repos/divmain/GitSavvy/issues/comments/368152324","html_url":"https://github.com/divmain/GitSavvy/issues/841#issuecomment-368152324","issue_url":"https://api.github.com/repos/divmain/GitSavvy/issues/841","id":368152324,"user":{"login":"mercurykd","id":30900414,"avatar_url":"https://avatars0.githubusercontent.com/u/30900414?v=4","gravatar_id":"","url":"https://api.github.com/users/mercurykd","html_url":"https://github.com/mercurykd","followers_url":"https://api.github.com/users/mercurykd/followers","following_url":"https://api.github.com/users/mercurykd/following{/other_user}","gists_url":"https://api.github.com/users/mercurykd/gists{/gist_id}","starred_url":"https://api.github.com/users/mercurykd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mercurykd/subscriptions","organizations_url":"https://api.github.com/users/mercurykd/orgs","repos_url":"https://api.github.com/users/mercurykd/repos","events_url":"https://api.github.com/users/mercurykd/events{/privacy}","received_events_url":"https://api.github.com/users/mercurykd/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T22:07:03Z","updated_at":"2018-02-23T22:07:03Z","author_association":"NONE","body":"git for window - stash list slow...\r\nit may be possible to make the integration wsl-git? sublime run through x-server looks ugly\r\n"}}
{"actor":{"display_login":"mercurykd"}}