From c9beba5763c98ab0c13e46631aef1e9da1022f0e Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 23 Dec 2022 17:21:03 +0100 Subject: 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. --- src/other_tools/root_maps/commit_git_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/other_tools/root_maps/commit_git_map.cpp') 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 = {{ -- cgit v1.2.3