fish-shell/cmake
ridiculousfish deec78cdd3 cmake: Unset GIT_WORK_TREE and GIT_DIR before FetchContent_Populate
GIT_WORK_TREE is an environment variable which tells git where the
worktree is. It may be set by the user or by git itself, e.g. when
running `git rebase -i --exec ...`. If it is set, it overrides the
working directory, causing the `git checkout` from FetchContent_Populate
to fail. Clear this variable.

Do the same for GIT_DIR for the same reason.

A way to reproduce the failure that this commit fixes is:

    git rebase -i HEAD^^^ --exec 'ninja -C /path/to/build/dir fish'

prior to this commit, using the fetched PCRE2, this would fail in CMake.
2022-08-06 13:07:22 -07:00
..
checks Optimize away a str2wcs_internal check 2020-09-07 18:05:18 -05:00
Benchmark.cmake Use lowercase CMake function names 2020-03-14 16:11:35 -07:00
CheckIncludeFiles.cmake :Revert "Remove CheckIncludeFiles.cmake" 2022-01-19 11:41:16 -08:00
ConfigureChecks.cmake Make static_assert C++11 compatible 2022-07-24 16:53:53 +02:00
Docs.cmake docs synopsis: add HTML highlighing and automate manpage markup 2022-01-19 22:56:41 +08:00
gettext.cmake cmake: disable frameworks when searching for libintl 2022-03-26 22:00:44 +08:00
Install.cmake Rename the top-level test target to fish_run_tests 2021-11-26 13:13:42 -08:00
Mac.cmake Revert "Update Mac.cmake" 2022-01-03 08:08:41 -08:00
MacApp.cmake Group certain cmake targets into folders 2021-03-21 13:29:41 -07:00
PCRE2.cmake cmake: Unset GIT_WORK_TREE and GIT_DIR before FetchContent_Populate 2022-08-06 13:07:22 -07:00
Tests.cmake Mark FISH_FORCE_COLOR in individual test targets 2022-04-10 13:41:21 -07:00
Version.cmake Use lowercase CMake function names 2020-03-14 16:11:35 -07:00