summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/content_git_map.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-08-19 16:01:16 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-08-26 12:12:00 +0200
commitc889b852a652115f4a6936a96ebdee9410571997 (patch)
treee553f21acab38fc4466adda19a378952df6a7eb6 /src/other_tools/root_maps/content_git_map.cpp
parenta312e71b59340f7b6d8dc5aac9202137ae81d02b (diff)
downloadjustbuild-c889b852a652115f4a6936a96ebdee9410571997.tar.gz
GitOps: Pass source directory to GitInitialCommit operation
While there, ensure optional Git operation parameters are checked before use for the operations that require them.
Diffstat (limited to 'src/other_tools/root_maps/content_git_map.cpp')
-rw-r--r--src/other_tools/root_maps/content_git_map.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/other_tools/root_maps/content_git_map.cpp b/src/other_tools/root_maps/content_git_map.cpp
index 38aa21a6..d0b9784c 100644
--- a/src/other_tools/root_maps/content_git_map.cpp
+++ b/src/other_tools/root_maps/content_git_map.cpp
@@ -546,6 +546,7 @@ void HandleLocallyKnownTree(
storage_config->GitRoot(), // target_path
"", // git_hash
std::nullopt, // message
+ std::nullopt, // source_path
true // init_bare
},
.op_type = GitOpType::ENSURE_INIT};
@@ -758,6 +759,7 @@ void HandleKnownInOlderGenerationAfterTagging(
storage_config->GitRoot(), // target_path
"", // git_hash
std::nullopt, // message
+ std::nullopt, // source_path
true // init_bare
},
.op_type = GitOpType::ENSURE_INIT};
@@ -1019,6 +1021,7 @@ auto CreateContentGitMap(
storage_config->GitRoot(), // target_path
"", // git_hash
std::nullopt, // message
+ std::nullopt, // source_path
true // init_bare
},
.op_type = GitOpType::ENSURE_INIT};