{"action":"closed","issue":{"url":"https://api.github.com/repos/github/hub/issues/1849","repository_url":"https://api.github.com/repos/github/hub","labels_url":"https://api.github.com/repos/github/hub/issues/1849/labels{/name}","comments_url":"https://api.github.com/repos/github/hub/issues/1849/comments","events_url":"https://api.github.com/repos/github/hub/issues/1849/events","html_url":"https://github.com/github/hub/issues/1849","id":353977682,"node_id":"MDU6SXNzdWUzNTM5Nzc2ODI=","number":1849,"title":"`hub create` fails to set the remote `origin` to the newly created repository, despite claiming to do so","user":{"login":"9999years","id":15312184,"node_id":"MDQ6VXNlcjE1MzEyMTg0","avatar_url":"https://avatars1.githubusercontent.com/u/15312184?v=4","gravatar_id":"","url":"https://api.github.com/users/9999years","html_url":"https://github.com/9999years","followers_url":"https://api.github.com/users/9999years/followers","following_url":"https://api.github.com/users/9999years/following{/other_user}","gists_url":"https://api.github.com/users/9999years/gists{/gist_id}","starred_url":"https://api.github.com/users/9999years/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9999years/subscriptions","organizations_url":"https://api.github.com/users/9999years/orgs","repos_url":"https://api.github.com/users/9999years/repos","events_url":"https://api.github.com/users/9999years/events{/privacy}","received_events_url":"https://api.github.com/users/9999years/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-25T03:09:15Z","updated_at":"2018-12-28T00:58:17Z","closed_at":"2018-12-28T00:58:17Z","author_association":"NONE","body":"When I create a repository with `git create`, hub fails to set the remote `origin` to the newly created repository, despite claiming to do so.\r\n\r\nIs this an error-checking mechanism? Either don’t claim to `set remote origin` or actually change the origin. It might also be worthwhile to print the old origin URL if applicable.\r\n\r\nExample:\r\n\r\n    $ mkdir test\r\n    $ cd test\r\n    $ git init\r\n    Initialized empty Git repository in C:/Users/arvensis/Documents/projects/test/.git/\r\n    $ git create\r\n    Updating origin\r\n    created repository: 9999years/test\r\n    $ git remote -v\r\n    origin  https://github.com/whatever/test.git (fetch)\r\n    origin  https://github.com/whatever/test.git (push)\r\n    $ git remote set-url origin https://example.com/\r\n    $ git remote -v\r\n    origin  https://example.com/ (fetch)\r\n    origin  https://example.com/ (push)\r\n    $ git create\r\n    9999years/test already exists on github.com\r\n    origin  https://example.com/ (fetch)\r\n    origin  https://example.com/ (push)\r\n    set remote origin: 9999years/test\r\n    $ git remote -v\r\n    origin  https://example.com/ (fetch)\r\n    origin  https://example.com/ (push)\r\n"}}
{"actor":{"display_login":"mislav"}}