diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-04-09 13:51:57 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-04-09 13:51:57 +0200 |
commit | 42f0246698cff491f084547f7aaa9e778f629065 (patch) | |
tree | 8fc920cf581fd8533bc44d6a6dd4d8e996ebc479 /src/libfetchers/github.cc | |
parent | 906adadacd2d1c98346a2f42c0b42a32d2806d94 (diff) |
Revert "libfetchers/tarball: Lock on effectiveUrl"
This reverts commit fc6bfb261d50102016ed812ecf9949d41fe539f7.
Fixes #4672.
Diffstat (limited to 'src/libfetchers/github.cc')
-rw-r--r-- | src/libfetchers/github.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libfetchers/github.cc b/src/libfetchers/github.cc index 3e5ad75a8..8352ef02d 100644 --- a/src/libfetchers/github.cc +++ b/src/libfetchers/github.cc @@ -207,16 +207,16 @@ struct GitArchiveInputScheme : InputScheme auto url = getDownloadUrl(input); - auto [tree, meta] = downloadTarball(store, url.url, "source", true, url.headers); + auto [tree, lastModified] = downloadTarball(store, url.url, "source", true, url.headers); - input.attrs.insert_or_assign("lastModified", uint64_t(meta.lastModified)); + input.attrs.insert_or_assign("lastModified", uint64_t(lastModified)); getCache()->add( store, immutableAttrs, { {"rev", rev->gitRev()}, - {"lastModified", uint64_t(meta.lastModified)} + {"lastModified", uint64_t(lastModified)} }, tree.storePath, true); |