mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Update libgit2 to v0.28.2
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ ENDIF ()
|
||||
|
||||
ExternalProject_Add(libgit2
|
||||
PREFIX "external"
|
||||
URL "https://github.com/libgit2/libgit2/archive/v0.28.1.tar.gz"
|
||||
URL "https://github.com/libgit2/libgit2/archive/v0.28.2.tar.gz"
|
||||
CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF -DBUILD_CLAR=OFF -DSTATIC_CRT=${MSVC_STATIC_RUNTIME} -DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE}
|
||||
BUILD_COMMAND ${CMAKE_COMMAND} --build . --target git2 --config $(CONFIGURATION)
|
||||
INSTALL_COMMAND "")
|
||||
|
||||
@@ -227,6 +227,11 @@ void GitHelper::Clone(const std::filesystem::path& path,
|
||||
for (fs::directory_iterator it(repoPath);
|
||||
it != fs::directory_iterator();
|
||||
++it) {
|
||||
// libgit2 v0.28.1 creates a _git2_<random> symlink on clone.
|
||||
if (!it->is_regular_file() && !it->is_directory()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
auto targetPath = path / it->path().filename();
|
||||
if (fs::exists(targetPath)) {
|
||||
fs::remove_all(targetPath);
|
||||
|
||||
Reference in New Issue
Block a user