Created
May 14, 2012 06:40
-
-
Save idan/2692246 to your computer and use it in GitHub Desktop.
Github API v3 regression: unable to get commits by partial SHA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ » curl -iI https://api.github.com/repos/django/django/git/commits/bbb12581dbd91945857cb4731368671776d4d388 ~ | |
HTTP/1.1 200 OK | |
Server: nginx/1.0.13 | |
Date: Mon, 14 May 2012 06:37:00 GMT | |
Content-Type: application/json; charset=utf-8 | |
Connection: keep-alive | |
Status: 200 OK | |
X-RateLimit-Limit: 5000 | |
ETag: "d41d8cd98f00b204e9800998ecf8427e" | |
X-RateLimit-Remaining: 4990 | |
Content-Length: 905 | |
~ » curl -iI https://api.github.com/repos/django/django/git/commits/bbb1258 ~ | |
HTTP/1.1 404 Not Found | |
Server: nginx/1.0.13 | |
Date: Mon, 14 May 2012 06:37:30 GMT | |
Content-Type: application/json; charset=utf-8 | |
Connection: keep-alive | |
Status: 404 Not Found | |
X-RateLimit-Limit: 5000 | |
ETag: "d41d8cd98f00b204e9800998ecf8427e" | |
X-RateLimit-Remaining: 4989 | |
Content-Length: 29 | |
~ » curl -iI http://github.com/api/v2/json/commits/show/django/django/bbb1258 ~ | |
HTTP/1.1 200 OK | |
Server: nginx/1.0.13 | |
Date: Mon, 14 May 2012 06:37:39 GMT | |
Content-Type: application/json; charset=utf-8 | |
Connection: close | |
Status: 200 OK | |
X-RateLimit-Limit: 60 | |
ETag: "f80042e9e883c60435f58915765653f4" | |
X-Frame-Options: deny | |
X-RateLimit-Remaining: 58 | |
X-Runtime: 27 | |
Content-Length: 5562 | |
Cache-Control: private, max-age=0, must-revalidate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you know if this issue was resolved? Or presumably there is now another way to lookup full shas from partial shas via the Github API?