diff options
author | Norbert Melzer <timmelzer@gmail.com> | 2022-05-12 00:56:39 +0200 |
---|---|---|
committer | Norbert Melzer <timmelzer@gmail.com> | 2022-05-12 00:56:39 +0200 |
commit | 831e2743ea0bac57ebccb73f532667a194b938d7 (patch) | |
tree | 4550723b92ea0db9b81e73c83a26c5290d4c14b8 | |
parent | b944b588fa280b0555b8269c0f6d097352f8716f (diff) |
fix GitHub URL template
-rw-r--r-- | src/libfetchers/github.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libfetchers/github.cc b/src/libfetchers/github.cc index 0721a13f2..0631fb6e8 100644 --- a/src/libfetchers/github.cc +++ b/src/libfetchers/github.cc @@ -267,8 +267,8 @@ struct GitHubInputScheme : GitArchiveInputScheme auto host = maybeGetStrAttr(input.attrs, "host").value_or("github.com"); auto url = fmt( host == "github.com" - ? "https://api.%s/repos/%s/%s/commits/%s" - : "https://%s/api/v3/repos/%s/%s/commits/%s", + ? "https://api.%s/repos/%s/%s/tarball/%s" + : "https://%s/api/v3/repos/%s/%s/tarball/%s", host, getStrAttr(input.attrs, "owner"), getStrAttr(input.attrs, "repo"), input.getRev()->to_string(Base16, false)); |