summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_utils.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-02-20 09:52:35 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-03-03 16:20:52 +0100
commit07864376504efde66c1e7b1b5185f84a531fe64c (patch)
tree62afac72f8f5828e7e2a41c838df9bdd221225e3 /src/buildtool/file_system/git_utils.cpp
parent6dcc58ed7745f2446107dce8c1cf69530c866dc1 (diff)
downloadjustbuild-07864376504efde66c1e7b1b5185f84a531fe64c.tar.gz
GitRepoRemote: Add getter for config snapshot
Diffstat (limited to 'src/buildtool/file_system/git_utils.cpp')
-rw-r--r--src/buildtool/file_system/git_utils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildtool/file_system/git_utils.cpp b/src/buildtool/file_system/git_utils.cpp
index 9fccbd9d..a38fae39 100644
--- a/src/buildtool/file_system/git_utils.cpp
+++ b/src/buildtool/file_system/git_utils.cpp
@@ -148,3 +148,9 @@ void tree_entry_closer(gsl::owner<git_tree_entry*> tree_entry) {
git_tree_entry_free(tree_entry);
#endif
}
+
+void config_closer(gsl::owner<git_config*> cfg) {
+#ifndef BOOTSTRAP_BUILD_TOOL
+ git_config_free(cfg);
+#endif
+}