{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/50140","repository_url":"https://api.github.com/repos/Homebrew/homebrew","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/50140/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/50140/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/50140/events","html_url":"https://github.com/Homebrew/homebrew/issues/50140","id":141078394,"number":50140,"title":"Cannot lock refs on brew update","user":{"login":"dhagerty9009","id":495534,"avatar_url":"https://avatars.githubusercontent.com/u/495534?v=3","gravatar_id":"","url":"https://api.github.com/users/dhagerty9009","html_url":"https://github.com/dhagerty9009","followers_url":"https://api.github.com/users/dhagerty9009/followers","following_url":"https://api.github.com/users/dhagerty9009/following{/other_user}","gists_url":"https://api.github.com/users/dhagerty9009/gists{/gist_id}","starred_url":"https://api.github.com/users/dhagerty9009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhagerty9009/subscriptions","organizations_url":"https://api.github.com/users/dhagerty9009/orgs","repos_url":"https://api.github.com/users/dhagerty9009/repos","events_url":"https://api.github.com/users/dhagerty9009/events{/privacy}","received_events_url":"https://api.github.com/users/dhagerty9009/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/needs%20response","name":"needs response","color":"c7def8"},{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/user%20configuration","name":"user configuration","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-15T19:41:12Z","updated_at":"2016-03-25T20:38:05Z","closed_at":"2016-03-25T20:38:05Z","body":"I get this output when running `brew update`:\r\n```\r\nerror: cannot lock ref 'refs/remotes/origin/master': ref refs/remotes/origin/master is at b0ea85753ecee494dc97fc9f95c5afb9d0b447be but expected 3dc4841f979401c09490bd07a46019ba0c6ebd95\r\nError: Fetching /usr/local/Library/Taps/phinze/homebrew-cask failed!\r\nerror: cannot lock ref 'refs/remotes/origin/master': ref refs/remotes/origin/master is at b0ea85753ecee494dc97fc9f95c5afb9d0b447be but expected 3dc4841f979401c09490bd07a46019ba0c6ebd95\r\nError: Fetching /usr/local/Library/Taps/homebrew/homebrew-versions failed!\r\nerror: cannot lock ref 'refs/remotes/origin/master': ref refs/remotes/origin/master is at b0ea85753ecee494dc97fc9f95c5afb9d0b447be but expected 3dc4841f979401c09490bd07a46019ba0c6ebd95\r\nError: Fetching /usr/local failed!\r\n```\r\n\r\n`brew update` still runs as expected, and here is the output when I run `brew doctor`:\r\n```\r\nYour system is ready to brew.\r\n```\r\n\r\nI'm wondering if there's anything I can do to fix the issue with these 'cannot lock ref' errors."},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/201486514","html_url":"https://github.com/Homebrew/homebrew/issues/50140#issuecomment-201486514","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/50140","id":201486514,"user":{"login":"DomT4","id":6998367,"avatar_url":"https://avatars.githubusercontent.com/u/6998367?v=3","gravatar_id":"","url":"https://api.github.com/users/DomT4","html_url":"https://github.com/DomT4","followers_url":"https://api.github.com/users/DomT4/followers","following_url":"https://api.github.com/users/DomT4/following{/other_user}","gists_url":"https://api.github.com/users/DomT4/gists{/gist_id}","starred_url":"https://api.github.com/users/DomT4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomT4/subscriptions","organizations_url":"https://api.github.com/users/DomT4/orgs","repos_url":"https://api.github.com/users/DomT4/repos","events_url":"https://api.github.com/users/DomT4/events{/privacy}","received_events_url":"https://api.github.com/users/DomT4/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T20:38:05Z","updated_at":"2016-03-25T20:38:05Z","body":"Please let us know if we can assist further here, Thanks!"}}