summaryrefslogtreecommitdiff
path: root/src/buildtool/main/main.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-06-13 13:30:13 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-06-13 13:30:13 +0200
commitef9182151e4a222a65ef55bc4ef06a25ecb2d895 (patch)
tree863a8b86da704664874ef5618988d3b38390f193 /src/buildtool/main/main.cpp
parent454cfcf66efc6ff5f42253431c6033e1e21044cf (diff)
downloadjustbuild-ef9182151e4a222a65ef55bc4ef06a25ecb2d895.tar.gz
FileRoot: support content description
For some file roots, in particular git trees, we can give a complete selfcontained description of the content without accessing any external resources. For those, add a method to return such a complete description that will be used to compute the keys of content-defined repositories.
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r--src/buildtool/main/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp
index 435e8219..b41d7a11 100644
--- a/src/buildtool/main/main.cpp
+++ b/src/buildtool/main/main.cpp
@@ -462,7 +462,7 @@ auto ParseRoot(std::string const& repo,
auto path = std::filesystem::path{root[1]};
return {FileRoot{path}, std::move(path)};
}
- if (root[0] == "git tree") {
+ if (root[0] == FileRoot::kGitTreeMarker) {
if (root.size() != 3 or (not root[1].is_string()) or
(not root[2].is_string())) {
Logger::Log(LogLevel::Error,