{"action":"created","issue":{"url":"https://api.github.com/repos/xwp/wp-dev-lib/issues/134","repository_url":"https://api.github.com/repos/xwp/wp-dev-lib","labels_url":"https://api.github.com/repos/xwp/wp-dev-lib/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/xwp/wp-dev-lib/issues/134/comments","events_url":"https://api.github.com/repos/xwp/wp-dev-lib/issues/134/events","html_url":"https://github.com/xwp/wp-dev-lib/pull/134","id":133917080,"number":134,"title":"Unset Git working tree","user":{"login":"MattGeri","id":49400,"avatar_url":"https://avatars.githubusercontent.com/u/49400?v=3","gravatar_id":"","url":"https://api.github.com/users/MattGeri","html_url":"https://github.com/MattGeri","followers_url":"https://api.github.com/users/MattGeri/followers","following_url":"https://api.github.com/users/MattGeri/following{/other_user}","gists_url":"https://api.github.com/users/MattGeri/gists{/gist_id}","starred_url":"https://api.github.com/users/MattGeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattGeri/subscriptions","organizations_url":"https://api.github.com/users/MattGeri/orgs","repos_url":"https://api.github.com/users/MattGeri/repos","events_url":"https://api.github.com/users/MattGeri/events{/privacy}","received_events_url":"https://api.github.com/users/MattGeri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-16T08:40:46Z","updated_at":"2016-02-24T19:11:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xwp/wp-dev-lib/pulls/134","html_url":"https://github.com/xwp/wp-dev-lib/pull/134","diff_url":"https://github.com/xwp/wp-dev-lib/pull/134.diff","patch_url":"https://github.com/xwp/wp-dev-lib/pull/134.patch"},"body":"If you don't unset the GIT_WORK_TREE var, the WPCS fails to clone because it thinks the working tree already exists\r\n\r\n@westonruter would like to have a discussion with you on this. It's rather complex :)"},"comment":{"url":"https://api.github.com/repos/xwp/wp-dev-lib/issues/comments/188410720","html_url":"https://github.com/xwp/wp-dev-lib/pull/134#issuecomment-188410720","issue_url":"https://api.github.com/repos/xwp/wp-dev-lib/issues/134","id":188410720,"user":{"login":"MattGeri","id":49400,"avatar_url":"https://avatars.githubusercontent.com/u/49400?v=3","gravatar_id":"","url":"https://api.github.com/users/MattGeri","html_url":"https://github.com/MattGeri","followers_url":"https://api.github.com/users/MattGeri/followers","following_url":"https://api.github.com/users/MattGeri/following{/other_user}","gists_url":"https://api.github.com/users/MattGeri/gists{/gist_id}","starred_url":"https://api.github.com/users/MattGeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattGeri/subscriptions","organizations_url":"https://api.github.com/users/MattGeri/orgs","repos_url":"https://api.github.com/users/MattGeri/repos","events_url":"https://api.github.com/users/MattGeri/events{/privacy}","received_events_url":"https://api.github.com/users/MattGeri/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T19:11:19Z","updated_at":"2016-02-24T19:11:19Z","body":"@westonruter Yep it works perfectly with the latest code and doesn't moan about working tree not existing. I'm not too sure about GIT_INDEX_FILE, I've never experienced an issue with it only GIT_WORK_TREE"}}