aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-10-24 17:06:33 -0700
committerRobert Schumacher <roschuma@microsoft.com>2016-10-24 17:06:33 -0700
commit0f0c0b7ad9e712473bde78b7ebf9700a667b3027 (patch)
treeb6b86708b96cbf2b5763fdecefa392bdd1711cde /scripts
parent982c98f133baa2043d86a20391933573ed573a92 (diff)
downloadvcpkg-0f0c0b7ad9e712473bde78b7ebf9700a667b3027.tar.gz
vcpkg-0f0c0b7ad9e712473bde78b7ebf9700a667b3027.zip
[vcpkg_apply_patches] Specify git-dir to avoid errors due to invalid git repo
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_apply_patches.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_apply_patches.cmake b/scripts/cmake/vcpkg_apply_patches.cmake
index f5d4d75f1..731909834 100644
--- a/scripts/cmake/vcpkg_apply_patches.cmake
+++ b/scripts/cmake/vcpkg_apply_patches.cmake
@@ -7,7 +7,7 @@ function(vcpkg_apply_patches)
message(STATUS "Applying patch ${PATCH}")
set(LOGNAME patch-${TARGET_TRIPLET}-${PATCHNUM})
execute_process(
- COMMAND ${GIT} --work-tree=. apply "${PATCH}" --ignore-whitespace --whitespace=nowarn --verbose
+ COMMAND ${GIT} --work-tree=. --git-dir=. apply "${PATCH}" --ignore-whitespace --whitespace=nowarn --verbose
OUTPUT_FILE ${CURRENT_BUILDTREES_DIR}/${LOGNAME}-out.log
ERROR_FILE ${CURRENT_BUILDTREES_DIR}/${LOGNAME}-err.log
WORKING_DIRECTORY ${_ap_SOURCE_PATH}