{"action":"created","issue":{"url":"https://api.github.com/repos/okonet/lint-staged/issues/21","repository_url":"https://api.github.com/repos/okonet/lint-staged","labels_url":"https://api.github.com/repos/okonet/lint-staged/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/okonet/lint-staged/issues/21/comments","events_url":"https://api.github.com/repos/okonet/lint-staged/issues/21/events","html_url":"https://github.com/okonet/lint-staged/issues/21","id":162919609,"number":21,"title":"Spaces in Windows Git executable path causing errors","user":{"login":"Voidsheep","id":1726360,"avatar_url":"https://avatars.githubusercontent.com/u/1726360?v=3","gravatar_id":"","url":"https://api.github.com/users/Voidsheep","html_url":"https://github.com/Voidsheep","followers_url":"https://api.github.com/users/Voidsheep/followers","following_url":"https://api.github.com/users/Voidsheep/following{/other_user}","gists_url":"https://api.github.com/users/Voidsheep/gists{/gist_id}","starred_url":"https://api.github.com/users/Voidsheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voidsheep/subscriptions","organizations_url":"https://api.github.com/users/Voidsheep/orgs","repos_url":"https://api.github.com/users/Voidsheep/repos","events_url":"https://api.github.com/users/Voidsheep/events{/privacy}","received_events_url":"https://api.github.com/users/Voidsheep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-29T13:02:49Z","updated_at":"2016-06-29T13:48:51Z","closed_at":null,"body":"I'm likely barking up the wrong tree here, but I have to use a Windows 7 virtual machine to develop a project and I ran into a path issue while trying to use lint-staged.\r\n\r\n```\r\nError: Command failed: C:\\Program Files (x86)\\Git\\cmd\\git.EXE rev-parse --show-toplevel\r\n'C:\\Program' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n\r\n    at checkExecSyncError (child_process.js:470:13)\r\n    at Object.execSync (child_process.js:510:13)\r\n    at Object.<anonymous> (E:\\project\\node_modules\\lint-staged\\src\\index.js:12:15)\r\n    at Module._compile (module.js:413:34)\r\n    at Object.Module._extensions..js (module.js:422:10)\r\n    at Module.load (module.js:357:32)\r\n    at Function.Module._load (module.js:314:12)\r\n    at Module.require (module.js:367:17)\r\n    at require (internal/module.js:20:19)\r\n    at Object.<anonymous> (E:\\project\\node_modules\\lint-staged\\index.js:2:1)\r\n```\r\n\r\nIt seems the path to the Git executable isn't quoted properly, so the space inside is causing an issue. I'd imagine this is very likely to happen on most Windows systems, due to the default installation path containing a space.\r\n\r\nI'm using Node v5.11.0 and NPM v3.8.6."},"comment":{"url":"https://api.github.com/repos/okonet/lint-staged/issues/comments/229361018","html_url":"https://github.com/okonet/lint-staged/issues/21#issuecomment-229361018","issue_url":"https://api.github.com/repos/okonet/lint-staged/issues/21","id":229361018,"user":{"login":"okonet","id":11071,"avatar_url":"https://avatars.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T13:48:51Z","updated_at":"2016-06-29T13:48:51Z","body":"Cool! I'll cut the release as soon as I get a decent connection. Thanks!"}}
{"actor":{"display_login":"okonet"}}