aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-05-12 11:24:51 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-05-12 11:24:51 +0200
commitd354fc30b9768ea3dc737a88b57bf5e26d98135b (patch)
tree4550723b92ea0db9b81e73c83a26c5290d4c14b8
parentb944b588fa280b0555b8269c0f6d097352f8716f (diff)
parent831e2743ea0bac57ebccb73f532667a194b938d7 (diff)
Merge branch 'fix-unrecognized-archive-format' of https://github.com/NobbZ/nix
-rw-r--r--src/libfetchers/github.cc4
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));