aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/git.cc
diff options
context:
space:
mode:
authorMatthew Kenigsberg <matthewkenigsberg@gmail.com>2020-06-01 08:59:26 -0600
committerMatthew Kenigsberg <matthewkenigsberg@gmail.com>2020-06-01 12:32:17 -0600
commitc254254a8088ca303e97b9430484cf25cf8f7806 (patch)
tree282d3a769c0c3c1c311610ff19086d3d4c246e22 /src/libfetchers/git.cc
parent768099350666f103131c59853cc7d70c0a6e19cd (diff)
use Tree ctor
Diffstat (limited to 'src/libfetchers/git.cc')
-rw-r--r--src/libfetchers/git.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc
index 4fcf3f542..af4efc9b1 100644
--- a/src/libfetchers/git.cc
+++ b/src/libfetchers/git.cc
@@ -189,10 +189,7 @@ struct GitInputScheme : InputScheme
input.attrs.insert_or_assign("revCount", getIntAttr(infoAttrs, "revCount"));
input.attrs.insert_or_assign("lastModified", getIntAttr(infoAttrs, "lastModified"));
return {
- Tree {
- .actualPath = store->toRealPath(storePath),
- .storePath = std::move(storePath),
- },
+ Tree(store->toRealPath(storePath), std::move(storePath)),
input
};
};
@@ -273,10 +270,8 @@ struct GitInputScheme : InputScheme
haveCommits ? std::stoull(runProgram("git", true, { "-C", actualUrl, "log", "-1", "--format=%ct", "HEAD" })) : 0);
return {
- Tree {
- .actualPath = store->printStorePath(storePath),
- .storePath = std::move(storePath),
- }, input
+ Tree(store->printStorePath(storePath), std::move(storePath)),
+ input
};
}
}