{"action":"closed","issue":{"url":"https://api.github.com/repos/mrkline/promptd/issues/9","labels_url":"https://api.github.com/repos/mrkline/promptd/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/mrkline/promptd/issues/9/comments","events_url":"https://api.github.com/repos/mrkline/promptd/issues/9/events","html_url":"https://github.com/mrkline/promptd/issues/9","id":62239013,"number":9,"title":"Early termination of `git status` leaves Git index lock behind","user":{"login":"mrkline","id":493463,"avatar_url":"https://avatars.githubusercontent.com/u/493463?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkline","html_url":"https://github.com/mrkline","followers_url":"https://api.github.com/users/mrkline/followers","following_url":"https://api.github.com/users/mrkline/following{/other_user}","gists_url":"https://api.github.com/users/mrkline/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkline/subscriptions","organizations_url":"https://api.github.com/users/mrkline/orgs","repos_url":"https://api.github.com/users/mrkline/repos","events_url":"https://api.github.com/users/mrkline/events{/privacy}","received_events_url":"https://api.github.com/users/mrkline/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrkline/promptd/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-16T23:44:19Z","updated_at":"2015-03-17T06:01:26Z","closed_at":"2015-03-17T06:01:26Z","body":"As it turns out, `git status` is not a read-only procedure. It locks the index by creating a lockfile (`index.lock`), which in hindsight is a very understandable and good idea.\r\n\r\nAs such, we really shouldn't exit `git status` using `SIGKILL`."}}