1

How do I download the latest release source for git/git from github?

Normal way, according to api docs, should be to get https://api.github.com/repos/git/git/releases/latest and get URLs from there. However:

$ curl https://api.github.com/repos/git/git/releases/latest
{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest/reference/repos#get-the-latest-release"
}

$ curl https://api.github.com/repos/git/git/releases
[

]

Other projects work fine:

$ curl -s https://api.github.com/repos/aria2/aria2/releases/latest | jq .tarball_url
"https://api.github.com/repos/aria2/aria2/tarball/release-1.35.0"

0 Answers0