{"action":"closed","issue":{"url":"https://api.github.com/repos/rebar/rebar3/issues/197","labels_url":"https://api.github.com/repos/rebar/rebar3/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/rebar/rebar3/issues/197/comments","events_url":"https://api.github.com/repos/rebar/rebar3/issues/197/events","html_url":"https://github.com/rebar/rebar3/issues/197","id":59423979,"number":197,"title":"Use rebar_utils:sh for rebar_git_resource:lock/2","user":{"login":"tsloughter","id":36227,"avatar_url":"https://avatars.githubusercontent.com/u/36227?v=3","gravatar_id":"","url":"https://api.github.com/users/tsloughter","html_url":"https://github.com/tsloughter","followers_url":"https://api.github.com/users/tsloughter/followers","following_url":"https://api.github.com/users/tsloughter/following{/other_user}","gists_url":"https://api.github.com/users/tsloughter/gists{/gist_id}","starred_url":"https://api.github.com/users/tsloughter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsloughter/subscriptions","organizations_url":"https://api.github.com/users/tsloughter/orgs","repos_url":"https://api.github.com/users/tsloughter/repos","events_url":"https://api.github.com/users/tsloughter/events{/privacy}","received_events_url":"https://api.github.com/users/tsloughter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rebar/rebar3/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-01T23:40:26Z","updated_at":"2015-03-03T15:27:12Z","closed_at":"2015-03-03T15:27:12Z","body":"Currently `rebar_git_resource:lock/2` does not care if the command it runs succeeds or fails, it simply uses the string returned as the git ref. Instead we should use `rebar_utils:sh` and error out with a useful message if it fails."}}