tarball.cc: Use ETags

This commit is contained in:
Eelco Dolstra
2020-03-18 15:14:23 +01:00
parent 1b49479836
commit c5ec95e2c7
7 changed files with 102 additions and 44 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ struct GitHubInput : Input
auto json = nlohmann::json::parse(
readFile(
store->toRealPath(
downloadFile(store, url, "source", false))));
downloadFile(store, url, "source", false).storePath)));
rev = Hash(json["sha"], htSHA1);
debug("HEAD revision for '%s' is %s", url, rev->gitRev());
}