summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/commit_git_map.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2022-12-23 17:21:03 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2022-12-23 18:33:09 +0100
commitc9beba5763c98ab0c13e46631aef1e9da1022f0e (patch)
treedc4bc39f03c74a3d87dbe720a36bfddb30dd8a30 /src/other_tools/root_maps/commit_git_map.cpp
parent0374b80dd407d7b35654a01e3c7526b749d3464e (diff)
downloadjustbuild-c9beba5763c98ab0c13e46631aef1e9da1022f0e.tar.gz
Just-MR: Fix wrong commit_git_map key
The subdir is required alongside the commit hash for a valid map key when importing a Git repository into our Git cache.
Diffstat (limited to 'src/other_tools/root_maps/commit_git_map.cpp')
-rw-r--r--src/other_tools/root_maps/commit_git_map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/other_tools/root_maps/commit_git_map.cpp b/src/other_tools/root_maps/commit_git_map.cpp
index e8dfeef4..d0b10258 100644
--- a/src/other_tools/root_maps/commit_git_map.cpp
+++ b/src/other_tools/root_maps/commit_git_map.cpp
@@ -136,7 +136,7 @@ void EnsureCommit(GitRepoInfo const& repo_info,
if (is_commit_present == std::nullopt) {
return;
}
- if (not *is_commit_present) {
+ if (not is_commit_present.value()) {
// if commit not there, fetch it
// get refspec for branch
GitOpKey op_key = {{