{"action":"opened","number":784,"pull_request":{"url":"https://api.github.com/repos/github/hub/pulls/784","id":28139150,"html_url":"https://github.com/github/hub/pull/784","diff_url":"https://github.com/github/hub/pull/784.diff","patch_url":"https://github.com/github/hub/pull/784.patch","issue_url":"https://api.github.com/repos/github/hub/issues/784","number":784,"state":"open","locked":false,"title":"Support clone from owner/repo for Enterprise","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"body":"Without this change, it seems to try to clone from github.com and it fails.\r\n\r\n    $ ./hub clone my_org/my_repo\r\n    Cloning into 'my_repo'...\r\n    fatal: remote error:\r\n      Repository not found.\r\n\r\nWith this, I get prompted to pick the host:\r\n\r\n    $ ./hub clone my_org/my_repo\r\n    Select host:\r\n     1. github.com\r\n     2. github-enterprise.mycompany.com\r\n    > 2\r\n    Cloning into 'my_repo'...\r\n    remote: Counting objects: 9892, done.\r\n    remote: Compressing objects: 100% (2838/2838), done.\r\n    remote: Total 9892 (delta 7130), reused 9729 (delta 7004)\r\n    Receiving objects: 100% (9892/9892), 3.45 MiB | 2.16 MiB/s, done.\r\n    Resolving deltas: 100% (7130/7130), done.\r\n    Checking connectivity... done.","created_at":"2015-01-27T19:55:43Z","updated_at":"2015-01-27T19:55:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/github/hub/pulls/784/commits","review_comments_url":"https://api.github.com/repos/github/hub/pulls/784/comments","review_comment_url":"https://api.github.com/repos/github/hub/pulls/comments/{number}","comments_url":"https://api.github.com/repos/github/hub/issues/784/comments","statuses_url":"https://api.github.com/repos/github/hub/statuses/3245eb3a4ca0d02caacc34cd8a51e122f56c71e2","head":{"label":"msabramo:support_clone_owner/repo_for_enterprise","ref":"support_clone_owner/repo_for_enterprise","sha":"3245eb3a4ca0d02caacc34cd8a51e122f56c71e2","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"repo":{"id":16749473,"name":"hub","full_name":"msabramo/hub","owner":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msabramo/hub","description":"hub helps you win at git.","fork":true,"url":"https://api.github.com/repos/msabramo/hub","forks_url":"https://api.github.com/repos/msabramo/hub/forks","keys_url":"https://api.github.com/repos/msabramo/hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msabramo/hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msabramo/hub/teams","hooks_url":"https://api.github.com/repos/msabramo/hub/hooks","issue_events_url":"https://api.github.com/repos/msabramo/hub/issues/events{/number}","events_url":"https://api.github.com/repos/msabramo/hub/events","assignees_url":"https://api.github.com/repos/msabramo/hub/assignees{/user}","branches_url":"https://api.github.com/repos/msabramo/hub/branches{/branch}","tags_url":"https://api.github.com/repos/msabramo/hub/tags","blobs_url":"https://api.github.com/repos/msabramo/hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msabramo/hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msabramo/hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/msabramo/hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msabramo/hub/statuses/{sha}","languages_url":"https://api.github.com/repos/msabramo/hub/languages","stargazers_url":"https://api.github.com/repos/msabramo/hub/stargazers","contributors_url":"https://api.github.com/repos/msabramo/hub/contributors","subscribers_url":"https://api.github.com/repos/msabramo/hub/subscribers","subscription_url":"https://api.github.com/repos/msabramo/hub/subscription","commits_url":"https://api.github.com/repos/msabramo/hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/msabramo/hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/msabramo/hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/msabramo/hub/issues/comments/{number}","contents_url":"https://api.github.com/repos/msabramo/hub/contents/{+path}","compare_url":"https://api.github.com/repos/msabramo/hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msabramo/hub/merges","archive_url":"https://api.github.com/repos/msabramo/hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msabramo/hub/downloads","issues_url":"https://api.github.com/repos/msabramo/hub/issues{/number}","pulls_url":"https://api.github.com/repos/msabramo/hub/pulls{/number}","milestones_url":"https://api.github.com/repos/msabramo/hub/milestones{/number}","notifications_url":"https://api.github.com/repos/msabramo/hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msabramo/hub/labels{/name}","releases_url":"https://api.github.com/repos/msabramo/hub/releases{/id}","created_at":"2014-02-11T23:28:25Z","updated_at":"2014-02-17T04:28:32Z","pushed_at":"2015-01-27T19:55:22Z","git_url":"git://github.com/msabramo/hub.git","ssh_url":"git@github.com:msabramo/hub.git","clone_url":"https://github.com/msabramo/hub.git","svn_url":"https://github.com/msabramo/hub","homepage":"http://hub.github.com/","size":2942,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"github:master","ref":"master","sha":"e2a4410bda860172a88c1d8c81308d0c964e359e","user":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":401025,"name":"hub","full_name":"github/hub","owner":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github/hub","description":"hub helps you win at git.","fork":false,"url":"https://api.github.com/repos/github/hub","forks_url":"https://api.github.com/repos/github/hub/forks","keys_url":"https://api.github.com/repos/github/hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/hub/teams","hooks_url":"https://api.github.com/repos/github/hub/hooks","issue_events_url":"https://api.github.com/repos/github/hub/issues/events{/number}","events_url":"https://api.github.com/repos/github/hub/events","assignees_url":"https://api.github.com/repos/github/hub/assignees{/user}","branches_url":"https://api.github.com/repos/github/hub/branches{/branch}","tags_url":"https://api.github.com/repos/github/hub/tags","blobs_url":"https://api.github.com/repos/github/hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/hub/statuses/{sha}","languages_url":"https://api.github.com/repos/github/hub/languages","stargazers_url":"https://api.github.com/repos/github/hub/stargazers","contributors_url":"https://api.github.com/repos/github/hub/contributors","subscribers_url":"https://api.github.com/repos/github/hub/subscribers","subscription_url":"https://api.github.com/repos/github/hub/subscription","commits_url":"https://api.github.com/repos/github/hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/hub/issues/comments/{number}","contents_url":"https://api.github.com/repos/github/hub/contents/{+path}","compare_url":"https://api.github.com/repos/github/hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/hub/merges","archive_url":"https://api.github.com/repos/github/hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/hub/downloads","issues_url":"https://api.github.com/repos/github/hub/issues{/number}","pulls_url":"https://api.github.com/repos/github/hub/pulls{/number}","milestones_url":"https://api.github.com/repos/github/hub/milestones{/number}","notifications_url":"https://api.github.com/repos/github/hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/hub/labels{/name}","releases_url":"https://api.github.com/repos/github/hub/releases{/id}","created_at":"2009-12-05T22:15:25Z","updated_at":"2015-01-27T15:50:56Z","pushed_at":"2015-01-23T19:17:39Z","git_url":"git://github.com/github/hub.git","ssh_url":"git@github.com:github/hub.git","clone_url":"https://github.com/github/hub.git","svn_url":"https://github.com/github/hub","homepage":"http://hub.github.com/","size":7136,"stargazers_count":5612,"watchers_count":5612,"language":"Go","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":499,"mirror_url":null,"open_issues_count":68,"forks":499,"open_issues":68,"watchers":5612,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/github/hub/pulls/784"},"html":{"href":"https://github.com/github/hub/pull/784"},"issue":{"href":"https://api.github.com/repos/github/hub/issues/784"},"comments":{"href":"https://api.github.com/repos/github/hub/issues/784/comments"},"review_comments":{"href":"https://api.github.com/repos/github/hub/pulls/784/comments"},"review_comment":{"href":"https://api.github.com/repos/github/hub/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/github/hub/pulls/784/commits"},"statuses":{"href":"https://api.github.com/repos/github/hub/statuses/3245eb3a4ca0d02caacc34cd8a51e122f56c71e2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":1}}