{"action":"created","comment":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/36036491","id":36036491,"diff_hunk":"@@ -12,29 +12,30 @@ const AUTH_DATA = Dict{Any,Any}(\n )\n \n function user()\n-    if !success(`git config --global github.user`)\n-        error(\"\"\"\n+    usr = LibGit2.getconfig(\"github.user\", \"\")\n+    if isempty(usr)\n+        throw(PkgError(\"\"\"\n         no GitHub user name configured; please configure it with:\n \n             git config --global github.user USERNAME\n \n         where USERNAME is replaced with your GitHub user name.\n-        \"\"\")\n+        \"\"\"))\n     end\n-    readchomp(`git config --global github.user`)\n+    return usr\n end\n \n function json()\n     isdefined(:JSON) || try require(\"JSON\")\n     catch err\n         warn(err)\n-        error(\"using the GitHub API requires having the JSON package installed \")\n+        throw(PkgError(\"using the GitHub API requires having the JSON package installed \"))\n     end\n     Main.JSON\n end\n \n function curl(url::AbstractString, opts::Cmd=``)\n-    success(`curl --version`) || error(\"using the GitHub API requires having `curl` installed\")\n+    success(`curl --version`) || throw(PkgError(\"using the GitHub API requires having `curl` installed\"))","path":"base/pkg/github.jl","position":42,"original_position":42,"commit_id":"eedf171debea428bcc10825cbdb8f021011c4caf","original_commit_id":"eedf171debea428bcc10825cbdb8f021011c4caf","user":{"login":"tkelman","id":5934628,"avatar_url":"https://avatars.githubusercontent.com/u/5934628?v=3","gravatar_id":"","url":"https://api.github.com/users/tkelman","html_url":"https://github.com/tkelman","followers_url":"https://api.github.com/users/tkelman/followers","following_url":"https://api.github.com/users/tkelman/following{/other_user}","gists_url":"https://api.github.com/users/tkelman/gists{/gist_id}","starred_url":"https://api.github.com/users/tkelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkelman/subscriptions","organizations_url":"https://api.github.com/users/tkelman/orgs","repos_url":"https://api.github.com/users/tkelman/repos","events_url":"https://api.github.com/users/tkelman/events{/privacy}","received_events_url":"https://api.github.com/users/tkelman/received_events","type":"User","site_admin":false},"body":"Hm, we'll need to rewrite the curl parts of this for windows after we take out command-line git. Should be fairly straightforward to come up with replacements using powershell.","created_at":"2015-08-01T19:56:12Z","updated_at":"2015-08-01T19:56:12Z","html_url":"https://github.com/JuliaLang/julia/pull/11196#discussion_r36036491","pull_request_url":"https://api.github.com/repos/JuliaLang/julia/pulls/11196","_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/36036491"},"html":{"href":"https://github.com/JuliaLang/julia/pull/11196#discussion_r36036491"},"pull_request":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/11196"}}},"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/11196","id":34982391,"html_url":"https://github.com/JuliaLang/julia/pull/11196","diff_url":"https://github.com/JuliaLang/julia/pull/11196.diff","patch_url":"https://github.com/JuliaLang/julia/pull/11196.patch","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/11196","number":11196,"state":"open","locked":false,"title":"WIP: Package system on libgit2","user":{"login":"wildart","id":38350,"avatar_url":"https://avatars.githubusercontent.com/u/38350?v=3","gravatar_id":"","url":"https://api.github.com/users/wildart","html_url":"https://github.com/wildart","followers_url":"https://api.github.com/users/wildart/followers","following_url":"https://api.github.com/users/wildart/following{/other_user}","gists_url":"https://api.github.com/users/wildart/gists{/gist_id}","starred_url":"https://api.github.com/users/wildart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildart/subscriptions","organizations_url":"https://api.github.com/users/wildart/orgs","repos_url":"https://api.github.com/users/wildart/repos","events_url":"https://api.github.com/users/wildart/events{/privacy}","received_events_url":"https://api.github.com/users/wildart/received_events","type":"User","site_admin":false},"body":"Package system switch to `libgit2` promises faster and resource efficient package management.\r\n\r\nThis work originated in #11143.\r\n\r\n**Pending:**\r\n- [x] next libgit2 release, [tracking issue here](https://github.com/libgit2/libgit2/issues/3135) (will [provide support](https://github.com/libgit2/libgit2/pull/2986) for HTTPS on Windows sans OpenSSL)\r\n- [ ] [homebrew update for libgit2 0.23](https://github.com/Homebrew/homebrew/pull/41578)","created_at":"2015-05-08T05:57:03Z","updated_at":"2015-08-01T19:56:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a27e80ae8b22659be1529864824af6883667fb6c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaLang/julia/pulls/11196/commits","review_comments_url":"https://api.github.com/repos/JuliaLang/julia/pulls/11196/comments","review_comment_url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/11196/comments","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/eedf171debea428bcc10825cbdb8f021011c4caf","head":{"label":"JuliaLang:art/pkg-libgit2","ref":"art/pkg-libgit2","sha":"eedf171debea428bcc10825cbdb8f021011c4caf","user":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"repo":{"id":1644196,"name":"julia","full_name":"JuliaLang/julia","owner":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaLang/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":false,"url":"https://api.github.com/repos/JuliaLang/julia","forks_url":"https://api.github.com/repos/JuliaLang/julia/forks","keys_url":"https://api.github.com/repos/JuliaLang/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaLang/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaLang/julia/teams","hooks_url":"https://api.github.com/repos/JuliaLang/julia/hooks","issue_events_url":"https://api.github.com/repos/JuliaLang/julia/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaLang/julia/events","assignees_url":"https://api.github.com/repos/JuliaLang/julia/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaLang/julia/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaLang/julia/tags","blobs_url":"https://api.github.com/repos/JuliaLang/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaLang/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaLang/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaLang/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaLang/julia/languages","stargazers_url":"https://api.github.com/repos/JuliaLang/julia/stargazers","contributors_url":"https://api.github.com/repos/JuliaLang/julia/contributors","subscribers_url":"https://api.github.com/repos/JuliaLang/julia/subscribers","subscription_url":"https://api.github.com/repos/JuliaLang/julia/subscription","commits_url":"https://api.github.com/repos/JuliaLang/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaLang/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaLang/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaLang/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaLang/julia/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaLang/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaLang/julia/merges","archive_url":"https://api.github.com/repos/JuliaLang/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaLang/julia/downloads","issues_url":"https://api.github.com/repos/JuliaLang/julia/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaLang/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaLang/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaLang/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaLang/julia/labels{/name}","releases_url":"https://api.github.com/repos/JuliaLang/julia/releases{/id}","created_at":"2011-04-21T07:01:50Z","updated_at":"2015-08-01T11:54:08Z","pushed_at":"2015-08-01T19:42:04Z","git_url":"git://github.com/JuliaLang/julia.git","ssh_url":"git@github.com:JuliaLang/julia.git","clone_url":"https://github.com/JuliaLang/julia.git","svn_url":"https://github.com/JuliaLang/julia","homepage":"http://julialang.org/","size":213487,"stargazers_count":5812,"watchers_count":5812,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1258,"mirror_url":null,"open_issues_count":1320,"forks":1258,"open_issues":1320,"watchers":5812,"default_branch":"master"}},"base":{"label":"JuliaLang:master","ref":"master","sha":"315fc50e7171104894df98e1fd1f6fa11d30531b","user":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"repo":{"id":1644196,"name":"julia","full_name":"JuliaLang/julia","owner":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaLang/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":false,"url":"https://api.github.com/repos/JuliaLang/julia","forks_url":"https://api.github.com/repos/JuliaLang/julia/forks","keys_url":"https://api.github.com/repos/JuliaLang/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaLang/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaLang/julia/teams","hooks_url":"https://api.github.com/repos/JuliaLang/julia/hooks","issue_events_url":"https://api.github.com/repos/JuliaLang/julia/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaLang/julia/events","assignees_url":"https://api.github.com/repos/JuliaLang/julia/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaLang/julia/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaLang/julia/tags","blobs_url":"https://api.github.com/repos/JuliaLang/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaLang/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaLang/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaLang/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaLang/julia/languages","stargazers_url":"https://api.github.com/repos/JuliaLang/julia/stargazers","contributors_url":"https://api.github.com/repos/JuliaLang/julia/contributors","subscribers_url":"https://api.github.com/repos/JuliaLang/julia/subscribers","subscription_url":"https://api.github.com/repos/JuliaLang/julia/subscription","commits_url":"https://api.github.com/repos/JuliaLang/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaLang/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaLang/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaLang/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaLang/julia/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaLang/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaLang/julia/merges","archive_url":"https://api.github.com/repos/JuliaLang/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaLang/julia/downloads","issues_url":"https://api.github.com/repos/JuliaLang/julia/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaLang/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaLang/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaLang/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaLang/julia/labels{/name}","releases_url":"https://api.github.com/repos/JuliaLang/julia/releases{/id}","created_at":"2011-04-21T07:01:50Z","updated_at":"2015-08-01T11:54:08Z","pushed_at":"2015-08-01T19:42:04Z","git_url":"git://github.com/JuliaLang/julia.git","ssh_url":"git@github.com:JuliaLang/julia.git","clone_url":"https://github.com/JuliaLang/julia.git","svn_url":"https://github.com/JuliaLang/julia","homepage":"http://julialang.org/","size":213487,"stargazers_count":5812,"watchers_count":5812,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1258,"mirror_url":null,"open_issues_count":1320,"forks":1258,"open_issues":1320,"watchers":5812,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/11196"},"html":{"href":"https://github.com/JuliaLang/julia/pull/11196"},"issue":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/11196"},"comments":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/11196/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/11196/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/11196/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaLang/julia/statuses/eedf171debea428bcc10825cbdb8f021011c4caf"}}}}