{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/sourcegraph/go-git/pulls/1","id":57762488,"html_url":"https://github.com/sourcegraph/go-git/pull/1","diff_url":"https://github.com/sourcegraph/go-git/pull/1.diff","patch_url":"https://github.com/sourcegraph/go-git/pull/1.patch","issue_url":"https://api.github.com/repos/sourcegraph/go-git/issues/1","number":1,"state":"closed","locked":false,"title":"Fix getting commit id of packed ref","user":{"login":"beyang","id":1646931,"avatar_url":"https://avatars.githubusercontent.com/u/1646931?v=3","gravatar_id":"","url":"https://api.github.com/users/beyang","html_url":"https://github.com/beyang","followers_url":"https://api.github.com/users/beyang/followers","following_url":"https://api.github.com/users/beyang/following{/other_user}","gists_url":"https://api.github.com/users/beyang/gists{/gist_id}","starred_url":"https://api.github.com/users/beyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beyang/subscriptions","organizations_url":"https://api.github.com/users/beyang/orgs","repos_url":"https://api.github.com/users/beyang/repos","events_url":"https://api.github.com/users/beyang/events{/privacy}","received_events_url":"https://api.github.com/users/beyang/received_events","type":"User","site_admin":false},"body":"Previously, `getCommitIdOfPackedRef` was determining if a ref was a match based purely on substring existence, which isn't correct. This was causing a bug where we resolved a branch to the incorrect commit. This fixes that method and adds a test.","created_at":"2016-01-31T07:42:18Z","updated_at":"2016-02-10T18:10:25Z","closed_at":"2016-02-10T18:10:25Z","merged_at":"2016-02-10T18:10:25Z","merge_commit_sha":"70ab70f0955cc16f1015b9b82e3d74a60d45a191","assignee":{"login":"neelance","id":16184,"avatar_url":"https://avatars.githubusercontent.com/u/16184?v=3","gravatar_id":"","url":"https://api.github.com/users/neelance","html_url":"https://github.com/neelance","followers_url":"https://api.github.com/users/neelance/followers","following_url":"https://api.github.com/users/neelance/following{/other_user}","gists_url":"https://api.github.com/users/neelance/gists{/gist_id}","starred_url":"https://api.github.com/users/neelance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neelance/subscriptions","organizations_url":"https://api.github.com/users/neelance/orgs","repos_url":"https://api.github.com/users/neelance/repos","events_url":"https://api.github.com/users/neelance/events{/privacy}","received_events_url":"https://api.github.com/users/neelance/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/sourcegraph/go-git/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sourcegraph/go-git/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sourcegraph/go-git/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sourcegraph/go-git/issues/1/comments","statuses_url":"https://api.github.com/repos/sourcegraph/go-git/statuses/bf11a69c3151b71035b2582a3682de0e8eca1d3e","head":{"label":"sourcegraph:fix-getCommitIdOfPackedRef","ref":"fix-getCommitIdOfPackedRef","sha":"bf11a69c3151b71035b2582a3682de0e8eca1d3e","user":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"repo":{"id":50021248,"name":"go-git","full_name":"sourcegraph/go-git","owner":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcegraph/go-git","description":"Fork of gogits/git with many changes/additions/removals.","fork":true,"url":"https://api.github.com/repos/sourcegraph/go-git","forks_url":"https://api.github.com/repos/sourcegraph/go-git/forks","keys_url":"https://api.github.com/repos/sourcegraph/go-git/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcegraph/go-git/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcegraph/go-git/teams","hooks_url":"https://api.github.com/repos/sourcegraph/go-git/hooks","issue_events_url":"https://api.github.com/repos/sourcegraph/go-git/issues/events{/number}","events_url":"https://api.github.com/repos/sourcegraph/go-git/events","assignees_url":"https://api.github.com/repos/sourcegraph/go-git/assignees{/user}","branches_url":"https://api.github.com/repos/sourcegraph/go-git/branches{/branch}","tags_url":"https://api.github.com/repos/sourcegraph/go-git/tags","blobs_url":"https://api.github.com/repos/sourcegraph/go-git/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcegraph/go-git/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcegraph/go-git/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcegraph/go-git/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcegraph/go-git/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcegraph/go-git/languages","stargazers_url":"https://api.github.com/repos/sourcegraph/go-git/stargazers","contributors_url":"https://api.github.com/repos/sourcegraph/go-git/contributors","subscribers_url":"https://api.github.com/repos/sourcegraph/go-git/subscribers","subscription_url":"https://api.github.com/repos/sourcegraph/go-git/subscription","commits_url":"https://api.github.com/repos/sourcegraph/go-git/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcegraph/go-git/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcegraph/go-git/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcegraph/go-git/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcegraph/go-git/contents/{+path}","compare_url":"https://api.github.com/repos/sourcegraph/go-git/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcegraph/go-git/merges","archive_url":"https://api.github.com/repos/sourcegraph/go-git/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcegraph/go-git/downloads","issues_url":"https://api.github.com/repos/sourcegraph/go-git/issues{/number}","pulls_url":"https://api.github.com/repos/sourcegraph/go-git/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcegraph/go-git/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcegraph/go-git/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcegraph/go-git/labels{/name}","releases_url":"https://api.github.com/repos/sourcegraph/go-git/releases{/id}","deployments_url":"https://api.github.com/repos/sourcegraph/go-git/deployments","created_at":"2016-01-20T10:01:20Z","updated_at":"2016-01-26T23:08:09Z","pushed_at":"2016-02-10T18:10:25Z","git_url":"git://github.com/sourcegraph/go-git.git","ssh_url":"git@github.com:sourcegraph/go-git.git","clone_url":"https://github.com/sourcegraph/go-git.git","svn_url":"https://github.com/sourcegraph/go-git","homepage":"","size":293,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"sourcegraph:master","ref":"master","sha":"003a16b7d495c9f9ea4693c1138c1ffcd1eea5a2","user":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"repo":{"id":50021248,"name":"go-git","full_name":"sourcegraph/go-git","owner":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcegraph/go-git","description":"Fork of gogits/git with many changes/additions/removals.","fork":true,"url":"https://api.github.com/repos/sourcegraph/go-git","forks_url":"https://api.github.com/repos/sourcegraph/go-git/forks","keys_url":"https://api.github.com/repos/sourcegraph/go-git/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcegraph/go-git/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcegraph/go-git/teams","hooks_url":"https://api.github.com/repos/sourcegraph/go-git/hooks","issue_events_url":"https://api.github.com/repos/sourcegraph/go-git/issues/events{/number}","events_url":"https://api.github.com/repos/sourcegraph/go-git/events","assignees_url":"https://api.github.com/repos/sourcegraph/go-git/assignees{/user}","branches_url":"https://api.github.com/repos/sourcegraph/go-git/branches{/branch}","tags_url":"https://api.github.com/repos/sourcegraph/go-git/tags","blobs_url":"https://api.github.com/repos/sourcegraph/go-git/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcegraph/go-git/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcegraph/go-git/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcegraph/go-git/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcegraph/go-git/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcegraph/go-git/languages","stargazers_url":"https://api.github.com/repos/sourcegraph/go-git/stargazers","contributors_url":"https://api.github.com/repos/sourcegraph/go-git/contributors","subscribers_url":"https://api.github.com/repos/sourcegraph/go-git/subscribers","subscription_url":"https://api.github.com/repos/sourcegraph/go-git/subscription","commits_url":"https://api.github.com/repos/sourcegraph/go-git/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcegraph/go-git/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcegraph/go-git/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcegraph/go-git/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcegraph/go-git/contents/{+path}","compare_url":"https://api.github.com/repos/sourcegraph/go-git/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcegraph/go-git/merges","archive_url":"https://api.github.com/repos/sourcegraph/go-git/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcegraph/go-git/downloads","issues_url":"https://api.github.com/repos/sourcegraph/go-git/issues{/number}","pulls_url":"https://api.github.com/repos/sourcegraph/go-git/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcegraph/go-git/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcegraph/go-git/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcegraph/go-git/labels{/name}","releases_url":"https://api.github.com/repos/sourcegraph/go-git/releases{/id}","deployments_url":"https://api.github.com/repos/sourcegraph/go-git/deployments","created_at":"2016-01-20T10:01:20Z","updated_at":"2016-01-26T23:08:09Z","pushed_at":"2016-02-10T18:10:25Z","git_url":"git://github.com/sourcegraph/go-git.git","ssh_url":"git@github.com:sourcegraph/go-git.git","clone_url":"https://github.com/sourcegraph/go-git.git","svn_url":"https://github.com/sourcegraph/go-git","homepage":"","size":293,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sourcegraph/go-git/pulls/1"},"html":{"href":"https://github.com/sourcegraph/go-git/pull/1"},"issue":{"href":"https://api.github.com/repos/sourcegraph/go-git/issues/1"},"comments":{"href":"https://api.github.com/repos/sourcegraph/go-git/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sourcegraph/go-git/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sourcegraph/go-git/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sourcegraph/go-git/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sourcegraph/go-git/statuses/bf11a69c3151b71035b2582a3682de0e8eca1d3e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"neelance","id":16184,"avatar_url":"https://avatars.githubusercontent.com/u/16184?v=3","gravatar_id":"","url":"https://api.github.com/users/neelance","html_url":"https://github.com/neelance","followers_url":"https://api.github.com/users/neelance/followers","following_url":"https://api.github.com/users/neelance/following{/other_user}","gists_url":"https://api.github.com/users/neelance/gists{/gist_id}","starred_url":"https://api.github.com/users/neelance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neelance/subscriptions","organizations_url":"https://api.github.com/users/neelance/orgs","repos_url":"https://api.github.com/users/neelance/repos","events_url":"https://api.github.com/users/neelance/events{/privacy}","received_events_url":"https://api.github.com/users/neelance/received_events","type":"User","site_admin":false},"comments":1,"review_comments":9,"commits":4,"additions":1185,"deletions":8,"changed_files":47}}