diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-02 11:58:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 11:58:20 +0200 |
commit | 7dbba0a94e3d5ad0388131d5653808084c42db89 (patch) | |
tree | 282d3a769c0c3c1c311610ff19086d3d4c246e22 /src/libfetchers/github.cc | |
parent | 89e0b3e2d62f72e48bdda63b77a086c69b314113 (diff) | |
parent | c254254a8088ca303e97b9430484cf25cf8f7806 (diff) |
Merge pull request #3645 from mkenigs/fetchOrSubstituteTree-improvements
Cache tree in fetchOrSubstituteTree
Diffstat (limited to 'src/libfetchers/github.cc')
-rw-r--r-- | src/libfetchers/github.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libfetchers/github.cc b/src/libfetchers/github.cc index d20b5d00c..cf2554a50 100644 --- a/src/libfetchers/github.cc +++ b/src/libfetchers/github.cc @@ -140,10 +140,7 @@ struct GitArchiveInputScheme : InputScheme if (auto res = getCache()->lookup(store, immutableAttrs)) { input.attrs.insert_or_assign("lastModified", getIntAttr(res->first, "lastModified")); return { - Tree{ - .actualPath = store->toRealPath(res->second), - .storePath = std::move(res->second), - }, + Tree(store->toRealPath(res->second), std::move(res->second)), input }; } |