{"action":"created","issue":{"url":"https://api.github.com/repos/kemayo/sublime-text-git/issues/427","labels_url":"https://api.github.com/repos/kemayo/sublime-text-git/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/kemayo/sublime-text-git/issues/427/comments","events_url":"https://api.github.com/repos/kemayo/sublime-text-git/issues/427/events","html_url":"https://github.com/kemayo/sublime-text-git/pull/427","id":100059842,"number":427,"title":"Fix fatal error when failing to acquire lock","user":{"login":"bordaigorl","id":2098241,"avatar_url":"https://avatars.githubusercontent.com/u/2098241?v=3","gravatar_id":"","url":"https://api.github.com/users/bordaigorl","html_url":"https://github.com/bordaigorl","followers_url":"https://api.github.com/users/bordaigorl/followers","following_url":"https://api.github.com/users/bordaigorl/following{/other_user}","gists_url":"https://api.github.com/users/bordaigorl/gists{/gist_id}","starred_url":"https://api.github.com/users/bordaigorl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bordaigorl/subscriptions","organizations_url":"https://api.github.com/users/bordaigorl/orgs","repos_url":"https://api.github.com/users/bordaigorl/repos","events_url":"https://api.github.com/users/bordaigorl/events{/privacy}","received_events_url":"https://api.github.com/users/bordaigorl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-10T13:09:37Z","updated_at":"2015-08-19T19:10:24Z","closed_at":"2015-08-19T19:10:24Z","pull_request":{"url":"https://api.github.com/repos/kemayo/sublime-text-git/pulls/427","html_url":"https://github.com/kemayo/sublime-text-git/pull/427","diff_url":"https://github.com/kemayo/sublime-text-git/pull/427.diff","patch_url":"https://github.com/kemayo/sublime-text-git/pull/427.patch"},"body":"As outlined in issue #426, checking the presence of `index.lock` in the plugin to avoid fatal errors deriving from delays in lock release does not work reliably.\r\n\r\nThis solution instead checks the return code of the command upon termination and if it is `128` (i.e. unexpected error) the command is retried for a maximum of 5 times. \r\nIf the command fails again, its output is presented to the user as before.\r\n\r\nThis fixes this problem and makes all the commands a bit more resilient."},"comment":{"url":"https://api.github.com/repos/kemayo/sublime-text-git/issues/comments/132746143","html_url":"https://github.com/kemayo/sublime-text-git/pull/427#issuecomment-132746143","issue_url":"https://api.github.com/repos/kemayo/sublime-text-git/issues/427","id":132746143,"user":{"login":"kemayo","id":2187,"avatar_url":"https://avatars.githubusercontent.com/u/2187?v=3","gravatar_id":"","url":"https://api.github.com/users/kemayo","html_url":"https://github.com/kemayo","followers_url":"https://api.github.com/users/kemayo/followers","following_url":"https://api.github.com/users/kemayo/following{/other_user}","gists_url":"https://api.github.com/users/kemayo/gists{/gist_id}","starred_url":"https://api.github.com/users/kemayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kemayo/subscriptions","organizations_url":"https://api.github.com/users/kemayo/orgs","repos_url":"https://api.github.com/users/kemayo/repos","events_url":"https://api.github.com/users/kemayo/events{/privacy}","received_events_url":"https://api.github.com/users/kemayo/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T19:10:24Z","updated_at":"2015-08-19T19:10:24Z","body":"I did, in fact, merge #430 in."}}