mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 10:43:32 +08:00
deec78cdd3
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. |
||
---|---|---|
.. | ||
checks | ||
Benchmark.cmake | ||
CheckIncludeFiles.cmake | ||
ConfigureChecks.cmake | ||
Docs.cmake | ||
gettext.cmake | ||
Install.cmake | ||
Mac.cmake | ||
MacApp.cmake | ||
PCRE2.cmake | ||
Tests.cmake | ||
Version.cmake |