summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/file_system/git_context.cpp')
-rw-r--r--src/buildtool/file_system/git_context.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildtool/file_system/git_context.cpp b/src/buildtool/file_system/git_context.cpp
index 4fc613a3..f6f83c0d 100644
--- a/src/buildtool/file_system/git_context.cpp
+++ b/src/buildtool/file_system/git_context.cpp
@@ -24,6 +24,7 @@ extern "C" {
GitContext::GitContext() noexcept {
#ifndef BOOTSTRAP_BUILD_TOOL
+ // NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer)
initialized_ = git_libgit2_init() >= 0;
if (not initialized_) {
Logger::Log(LogLevel::Error, "initializing libgit2 failed");