title: Get git commit from short hash using Github API
body: <p>I have a short hash that should identify a commit on my repository. I'd like to use this to get the long hash, without having to use git locally (I'm aware I can do this using 'git show 918fe27', if I have a local copy of the repo, which I don't).</p>
  
  <p>Say my hash is 918fe27:</p>
  
  <blockquote>
    <p>1)<a href="https://github.com/" rel="noreferrer">https://github.com/</a>$USER/$REPO/commit/918fe27 (works, but html response)</p>
    
    <p>2)<a href="https://api.github.com/repos/" rel="noreferrer">https://api.github.com/repos/</a>$USER/$REPO/git/commits/918fe2742c80b06661444857a34fcdb29c76df36 (works, but I don't have the full hash)</p>
  </blockquote>
  
  <p>I'd like to use (2), but with only the short hash, but it seems that it just doesn't work that way, even though the non-api version of the same thing (1) works fine.</p>
  
  <p>Does anyone know how to do this?</p>