GitEnableLogging enables the git logging in LibGit2Sharp and routes the log messages into Cake. NOt sure, if we need this, but it felt like a nice addition while I was looking through the configuration-options of LibGit2Sharp.
GitSetLibGit2NativeLibraryPathToIncluded calculates the path to the included native libGit2 libraries and configures that path as NativeLibraryPath of LibGit2Sharp.
If this works for all systems, we could also drop the use of the extra call and configure NativeLibraryPath automatically. (This would actually be my preferred solution, I think. Calling GitSetLibGit2NativeLibraryPathToIncluded() as a first statement on every build that uses Cake.Git feels a bit cumbersome.)
GitEnableLogging
enables the git logging in LibGit2Sharp and routes the log messages into Cake. NOt sure, if we need this, but it felt like a nice addition while I was looking through the configuration-options of LibGit2Sharp.GitSetLibGit2NativeLibraryPathToIncluded
calculates the path to the included native libGit2 libraries and configures that path asNativeLibraryPath
of LibGit2Sharp.If this works for all systems, we could also drop the use of the extra call and configure
NativeLibraryPath
automatically. (This would actually be my preferred solution, I think. CallingGitSetLibGit2NativeLibraryPathToIncluded()
as a first statement on every build that uses Cake.Git feels a bit cumbersome.)