{"action":"created","issue":{"url":"https://api.github.com/repos/melpa/melpa/issues/5216","repository_url":"https://api.github.com/repos/melpa/melpa","labels_url":"https://api.github.com/repos/melpa/melpa/issues/5216/labels{/name}","comments_url":"https://api.github.com/repos/melpa/melpa/issues/5216/comments","events_url":"https://api.github.com/repos/melpa/melpa/issues/5216/events","html_url":"https://github.com/melpa/melpa/pull/5216","id":285222962,"number":5216,"title":"specify \"gh-pages\" branch since \"master\" does not exist","user":{"login":"emacs18","id":2023209,"avatar_url":"https://avatars3.githubusercontent.com/u/2023209?v=4","gravatar_id":"","url":"https://api.github.com/users/emacs18","html_url":"https://github.com/emacs18","followers_url":"https://api.github.com/users/emacs18/followers","following_url":"https://api.github.com/users/emacs18/following{/other_user}","gists_url":"https://api.github.com/users/emacs18/gists{/gist_id}","starred_url":"https://api.github.com/users/emacs18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emacs18/subscriptions","organizations_url":"https://api.github.com/users/emacs18/orgs","repos_url":"https://api.github.com/users/emacs18/repos","events_url":"https://api.github.com/users/emacs18/events{/privacy}","received_events_url":"https://api.github.com/users/emacs18/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-12-30T20:46:54Z","updated_at":"2017-12-31T20:56:46Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/melpa/melpa/pulls/5216","html_url":"https://github.com/melpa/melpa/pull/5216","diff_url":"https://github.com/melpa/melpa/pull/5216.diff","patch_url":"https://github.com/melpa/melpa/pull/5216.patch"},"body":"Default branch is \"master\", but https://github.com/google/styleguide.git\r\ngit repo does not have such branch.\r\n"},"comment":{"url":"https://api.github.com/repos/melpa/melpa/issues/comments/354623514","html_url":"https://github.com/melpa/melpa/pull/5216#issuecomment-354623514","issue_url":"https://api.github.com/repos/melpa/melpa/issues/5216","id":354623514,"user":{"login":"emacs18","id":2023209,"avatar_url":"https://avatars3.githubusercontent.com/u/2023209?v=4","gravatar_id":"","url":"https://api.github.com/users/emacs18","html_url":"https://github.com/emacs18","followers_url":"https://api.github.com/users/emacs18/followers","following_url":"https://api.github.com/users/emacs18/following{/other_user}","gists_url":"https://api.github.com/users/emacs18/gists{/gist_id}","starred_url":"https://api.github.com/users/emacs18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emacs18/subscriptions","organizations_url":"https://api.github.com/users/emacs18/orgs","repos_url":"https://api.github.com/users/emacs18/repos","events_url":"https://api.github.com/users/emacs18/events{/privacy}","received_events_url":"https://api.github.com/users/emacs18/received_events","type":"User","site_admin":false},"created_at":"2017-12-31T20:56:46Z","updated_at":"2017-12-31T20:56:46Z","author_association":"CONTRIBUTOR","body":"Let me give another shot.  How about the following which seems to be more robust?\r\n\r\n```\r\n(defun package-build--git-head-branch (dir)\r\n  \"Get the current git repo for DIR.\"\r\n  (or (ignore-errors\r\n        (package-build--run-process-match\r\n         \"HEAD branch: \\\\(.*\\\\)\" dir \"git\" \"remote\" \"show\" \"origin\"))\r\n      (ignore-errors\r\n        (package-build--run-process-match \"^\\\\* \\\\(.*\\\\)\" dir \"git\" \"branch\"))\r\n      \"master\"))\r\n```\r\n"}}
{"actor":{"display_login":"emacs18"}}