{"action":"created","comment":{"url":"https://api.github.com/repos/gushphp/gush/pulls/comments/73792371","id":73792371,"diff_hunk":"@@ -140,7 +142,15 @@ public function restoreStashedBranch()\n      */\n     public function isGitDir($requireRoot = true)\n     {\n-        $directory = $this->getGitDir();\n+        try {\n+            $directory = $this->getGitDir();\n+        } catch (\\RuntimeException $e) {\n+            if (128 === $e->getCode() && 'fatal: Not a git repository (or any of the parent directories): .git' === $e->getMessage()) {","path":"src/Helper/GitHelper.php","position":19,"original_position":19,"commit_id":"70d30ac6425a87c76e38fa713a1ea4619b85d019","original_commit_id":"70d30ac6425a87c76e38fa713a1ea4619b85d019","user":{"login":"phansys","id":1231441,"avatar_url":"https://avatars.githubusercontent.com/u/1231441?v=3","gravatar_id":"","url":"https://api.github.com/users/phansys","html_url":"https://github.com/phansys","followers_url":"https://api.github.com/users/phansys/followers","following_url":"https://api.github.com/users/phansys/following{/other_user}","gists_url":"https://api.github.com/users/phansys/gists{/gist_id}","starred_url":"https://api.github.com/users/phansys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansys/subscriptions","organizations_url":"https://api.github.com/users/phansys/orgs","repos_url":"https://api.github.com/users/phansys/repos","events_url":"https://api.github.com/users/phansys/events{/privacy}","received_events_url":"https://api.github.com/users/phansys/received_events","type":"User","site_admin":false},"body":"That was my first thought @GrahamCampbell, but I don't know which is the git's mapping for exit codes.","created_at":"2016-08-06T21:38:17Z","updated_at":"2016-08-06T21:38:17Z","html_url":"https://github.com/gushphp/gush/pull/614#discussion_r73792371","pull_request_url":"https://api.github.com/repos/gushphp/gush/pulls/614","_links":{"self":{"href":"https://api.github.com/repos/gushphp/gush/pulls/comments/73792371"},"html":{"href":"https://github.com/gushphp/gush/pull/614#discussion_r73792371"},"pull_request":{"href":"https://api.github.com/repos/gushphp/gush/pulls/614"}}},"pull_request":{"url":"https://api.github.com/repos/gushphp/gush/pulls/614","id":80348294,"html_url":"https://github.com/gushphp/gush/pull/614","diff_url":"https://github.com/gushphp/gush/pull/614.diff","patch_url":"https://github.com/gushphp/gush/pull/614.patch","issue_url":"https://api.github.com/repos/gushphp/gush/issues/614","number":614,"state":"open","locked":false,"title":"[bugfix] Catch \"fatal: Not a git repository (or any of the parent directories): .git\" exception at `GitHelper::isGitDir()`","user":{"login":"phansys","id":1231441,"avatar_url":"https://avatars.githubusercontent.com/u/1231441?v=3","gravatar_id":"","url":"https://api.github.com/users/phansys","html_url":"https://github.com/phansys","followers_url":"https://api.github.com/users/phansys/followers","following_url":"https://api.github.com/users/phansys/following{/other_user}","gists_url":"https://api.github.com/users/phansys/gists{/gist_id}","starred_url":"https://api.github.com/users/phansys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansys/subscriptions","organizations_url":"https://api.github.com/users/phansys/orgs","repos_url":"https://api.github.com/users/phansys/repos","events_url":"https://api.github.com/users/phansys/events{/privacy}","received_events_url":"https://api.github.com/users/phansys/received_events","type":"User","site_admin":false},"body":"|Q            |A   |\n|---          |--- |\n|Fixed tickets|#612|\n|License      |MIT |","created_at":"2016-08-06T19:14:49Z","updated_at":"2016-08-06T21:38:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2eab94c298d75badf88029c7acc8da8d570fbabd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gushphp/gush/pulls/614/commits","review_comments_url":"https://api.github.com/repos/gushphp/gush/pulls/614/comments","review_comment_url":"https://api.github.com/repos/gushphp/gush/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gushphp/gush/issues/614/comments","statuses_url":"https://api.github.com/repos/gushphp/gush/statuses/70d30ac6425a87c76e38fa713a1ea4619b85d019","head":{"label":"phansys:is_git_dir","ref":"is_git_dir","sha":"70d30ac6425a87c76e38fa713a1ea4619b85d019","user":{"login":"phansys","id":1231441,"avatar_url":"https://avatars.githubusercontent.com/u/1231441?v=3","gravatar_id":"","url":"https://api.github.com/users/phansys","html_url":"https://github.com/phansys","followers_url":"https://api.github.com/users/phansys/followers","following_url":"https://api.github.com/users/phansys/following{/other_user}","gists_url":"https://api.github.com/users/phansys/gists{/gist_id}","starred_url":"https://api.github.com/users/phansys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansys/subscriptions","organizations_url":"https://api.github.com/users/phansys/orgs","repos_url":"https://api.github.com/users/phansys/repos","events_url":"https://api.github.com/users/phansys/events{/privacy}","received_events_url":"https://api.github.com/users/phansys/received_events","type":"User","site_admin":false},"repo":{"id":64043790,"name":"gush","full_name":"phansys/gush","owner":{"login":"phansys","id":1231441,"avatar_url":"https://avatars.githubusercontent.com/u/1231441?v=3","gravatar_id":"","url":"https://api.github.com/users/phansys","html_url":"https://github.com/phansys","followers_url":"https://api.github.com/users/phansys/followers","following_url":"https://api.github.com/users/phansys/following{/other_user}","gists_url":"https://api.github.com/users/phansys/gists{/gist_id}","starred_url":"https://api.github.com/users/phansys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phansys/subscriptions","organizations_url":"https://api.github.com/users/phansys/orgs","repos_url":"https://api.github.com/users/phansys/repos","events_url":"https://api.github.com/users/phansys/events{/privacy}","received_events_url":"https://api.github.com/users/phansys/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phansys/gush","description":"Project Maintenance & Contributing Automation","fork":true,"url":"https://api.github.com/repos/phansys/gush","forks_url":"https://api.github.com/repos/phansys/gush/forks","keys_url":"https://api.github.com/repos/phansys/gush/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phansys/gush/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phansys/gush/teams","hooks_url":"https://api.github.com/repos/phansys/gush/hooks","issue_events_url":"https://api.github.com/repos/phansys/gush/issues/events{/number}","events_url":"https://api.github.com/repos/phansys/gush/events","assignees_url":"https://api.github.com/repos/phansys/gush/assignees{/user}","branches_url":"https://api.github.com/repos/phansys/gush/branches{/branch}","tags_url":"https://api.github.com/repos/phansys/gush/tags","blobs_url":"https://api.github.com/repos/phansys/gush/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phansys/gush/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phansys/gush/git/refs{/sha}","trees_url":"https://api.github.com/repos/phansys/gush/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phansys/gush/statuses/{sha}","languages_url":"https://api.github.com/repos/phansys/gush/languages","stargazers_url":"https://api.github.com/repos/phansys/gush/stargazers","contributors_url":"https://api.github.com/repos/phansys/gush/contributors","subscribers_url":"https://api.github.com/repos/phansys/gush/subscribers","subscription_url":"https://api.github.com/repos/phansys/gush/subscription","commits_url":"https://api.github.com/repos/phansys/gush/commits{/sha}","git_commits_url":"https://api.github.com/repos/phansys/gush/git/commits{/sha}","comments_url":"https://api.github.com/repos/phansys/gush/comments{/number}","issue_comment_url":"https://api.github.com/repos/phansys/gush/issues/comments{/number}","contents_url":"https://api.github.com/repos/phansys/gush/contents/{+path}","compare_url":"https://api.github.com/repos/phansys/gush/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phansys/gush/merges","archive_url":"https://api.github.com/repos/phansys/gush/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phansys/gush/downloads","issues_url":"https://api.github.com/repos/phansys/gush/issues{/number}","pulls_url":"https://api.github.com/repos/phansys/gush/pulls{/number}","milestones_url":"https://api.github.com/repos/phansys/gush/milestones{/number}","notifications_url":"https://api.github.com/repos/phansys/gush/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phansys/gush/labels{/name}","releases_url":"https://api.github.com/repos/phansys/gush/releases{/id}","deployments_url":"https://api.github.com/repos/phansys/gush/deployments","created_at":"2016-07-24T01:48:39Z","updated_at":"2016-07-24T01:48:40Z","pushed_at":"2016-08-06T21:34:13Z","git_url":"git://github.com/phansys/gush.git","ssh_url":"git@github.com:phansys/gush.git","clone_url":"https://github.com/phansys/gush.git","svn_url":"https://github.com/phansys/gush","homepage":"","size":4213,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gushphp:master","ref":"master","sha":"da63a8b127ae6f1c96a7f9a5238ae1d7005586bd","user":{"login":"gushphp","id":6666950,"avatar_url":"https://avatars.githubusercontent.com/u/6666950?v=3","gravatar_id":"","url":"https://api.github.com/users/gushphp","html_url":"https://github.com/gushphp","followers_url":"https://api.github.com/users/gushphp/followers","following_url":"https://api.github.com/users/gushphp/following{/other_user}","gists_url":"https://api.github.com/users/gushphp/gists{/gist_id}","starred_url":"https://api.github.com/users/gushphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gushphp/subscriptions","organizations_url":"https://api.github.com/users/gushphp/orgs","repos_url":"https://api.github.com/users/gushphp/repos","events_url":"https://api.github.com/users/gushphp/events{/privacy}","received_events_url":"https://api.github.com/users/gushphp/received_events","type":"Organization","site_admin":false},"repo":{"id":16789051,"name":"gush","full_name":"gushphp/gush","owner":{"login":"gushphp","id":6666950,"avatar_url":"https://avatars.githubusercontent.com/u/6666950?v=3","gravatar_id":"","url":"https://api.github.com/users/gushphp","html_url":"https://github.com/gushphp","followers_url":"https://api.github.com/users/gushphp/followers","following_url":"https://api.github.com/users/gushphp/following{/other_user}","gists_url":"https://api.github.com/users/gushphp/gists{/gist_id}","starred_url":"https://api.github.com/users/gushphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gushphp/subscriptions","organizations_url":"https://api.github.com/users/gushphp/orgs","repos_url":"https://api.github.com/users/gushphp/repos","events_url":"https://api.github.com/users/gushphp/events{/privacy}","received_events_url":"https://api.github.com/users/gushphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gushphp/gush","description":"Project Maintenance & Contributing Automation","fork":false,"url":"https://api.github.com/repos/gushphp/gush","forks_url":"https://api.github.com/repos/gushphp/gush/forks","keys_url":"https://api.github.com/repos/gushphp/gush/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gushphp/gush/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gushphp/gush/teams","hooks_url":"https://api.github.com/repos/gushphp/gush/hooks","issue_events_url":"https://api.github.com/repos/gushphp/gush/issues/events{/number}","events_url":"https://api.github.com/repos/gushphp/gush/events","assignees_url":"https://api.github.com/repos/gushphp/gush/assignees{/user}","branches_url":"https://api.github.com/repos/gushphp/gush/branches{/branch}","tags_url":"https://api.github.com/repos/gushphp/gush/tags","blobs_url":"https://api.github.com/repos/gushphp/gush/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gushphp/gush/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gushphp/gush/git/refs{/sha}","trees_url":"https://api.github.com/repos/gushphp/gush/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gushphp/gush/statuses/{sha}","languages_url":"https://api.github.com/repos/gushphp/gush/languages","stargazers_url":"https://api.github.com/repos/gushphp/gush/stargazers","contributors_url":"https://api.github.com/repos/gushphp/gush/contributors","subscribers_url":"https://api.github.com/repos/gushphp/gush/subscribers","subscription_url":"https://api.github.com/repos/gushphp/gush/subscription","commits_url":"https://api.github.com/repos/gushphp/gush/commits{/sha}","git_commits_url":"https://api.github.com/repos/gushphp/gush/git/commits{/sha}","comments_url":"https://api.github.com/repos/gushphp/gush/comments{/number}","issue_comment_url":"https://api.github.com/repos/gushphp/gush/issues/comments{/number}","contents_url":"https://api.github.com/repos/gushphp/gush/contents/{+path}","compare_url":"https://api.github.com/repos/gushphp/gush/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gushphp/gush/merges","archive_url":"https://api.github.com/repos/gushphp/gush/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gushphp/gush/downloads","issues_url":"https://api.github.com/repos/gushphp/gush/issues{/number}","pulls_url":"https://api.github.com/repos/gushphp/gush/pulls{/number}","milestones_url":"https://api.github.com/repos/gushphp/gush/milestones{/number}","notifications_url":"https://api.github.com/repos/gushphp/gush/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gushphp/gush/labels{/name}","releases_url":"https://api.github.com/repos/gushphp/gush/releases{/id}","deployments_url":"https://api.github.com/repos/gushphp/gush/deployments","created_at":"2014-02-13T02:14:36Z","updated_at":"2016-07-24T13:42:54Z","pushed_at":"2016-08-06T21:34:13Z","git_url":"git://github.com/gushphp/gush.git","ssh_url":"git@github.com:gushphp/gush.git","clone_url":"https://github.com/gushphp/gush.git","svn_url":"https://github.com/gushphp/gush","homepage":"","size":4777,"stargazers_count":282,"watchers_count":282,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":16,"forks":44,"open_issues":16,"watchers":282,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gushphp/gush/pulls/614"},"html":{"href":"https://github.com/gushphp/gush/pull/614"},"issue":{"href":"https://api.github.com/repos/gushphp/gush/issues/614"},"comments":{"href":"https://api.github.com/repos/gushphp/gush/issues/614/comments"},"review_comments":{"href":"https://api.github.com/repos/gushphp/gush/pulls/614/comments"},"review_comment":{"href":"https://api.github.com/repos/gushphp/gush/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gushphp/gush/pulls/614/commits"},"statuses":{"href":"https://api.github.com/repos/gushphp/gush/statuses/70d30ac6425a87c76e38fa713a1ea4619b85d019"}}}}
{"actor":{"display_login":"phansys"}}