From f78ccd9f0ea37356a22079a1a661456eb380d157 Mon Sep 17 00:00:00 2001 From: Leonid Pospelov Date: Wed, 16 Dec 2020 01:37:00 +0300 Subject: [mongo-c-driver] Fix Git too long path error with -c (#14825) Co-authored-by: Billy Robert O'Neal III --- scripts/cmake/vcpkg_apply_patches.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/cmake') diff --git a/scripts/cmake/vcpkg_apply_patches.cmake b/scripts/cmake/vcpkg_apply_patches.cmake index 25ba45331..a3b6a46ee 100644 --- a/scripts/cmake/vcpkg_apply_patches.cmake +++ b/scripts/cmake/vcpkg_apply_patches.cmake @@ -51,7 +51,7 @@ function(vcpkg_apply_patches) message(STATUS "Applying patch ${PATCH}") set(LOGNAME patch-${TARGET_TRIPLET}-${PATCHNUM}) vcpkg_execute_in_download_mode( - COMMAND ${GIT} --work-tree=. --git-dir=.git apply "${ABSOLUTE_PATCH}" --ignore-whitespace --whitespace=nowarn --verbose + COMMAND ${GIT} -c core.longpaths=true --work-tree=. --git-dir=.git apply "${ABSOLUTE_PATCH}" --ignore-whitespace --whitespace=nowarn --verbose OUTPUT_FILE ${CURRENT_BUILDTREES_DIR}/${LOGNAME}-out.log ERROR_VARIABLE error WORKING_DIRECTORY ${_ap_SOURCE_PATH} -- cgit v1.2.3