diff options
Diffstat (limited to 'src/buildtool/file_system/git_context.cpp')
-rw-r--r-- | src/buildtool/file_system/git_context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/file_system/git_context.cpp b/src/buildtool/file_system/git_context.cpp index 94fb3cef..4fc613a3 100644 --- a/src/buildtool/file_system/git_context.cpp +++ b/src/buildtool/file_system/git_context.cpp @@ -24,7 +24,8 @@ extern "C" { GitContext::GitContext() noexcept { #ifndef BOOTSTRAP_BUILD_TOOL - if (not(initialized_ = (git_libgit2_init() >= 0))) { + initialized_ = git_libgit2_init() >= 0; + if (not initialized_) { Logger::Log(LogLevel::Error, "initializing libgit2 failed"); } #endif |