diff options
author | Craig Scott <craig.scott@crascit.com> | 2021-06-20 05:40:45 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2021-06-20 05:40:45 (GMT) |
commit | 360ff17dc6e3dba2af56b13fa43b246633e13465 (patch) | |
tree | ff40f8d58d89e61d42de337c3bcc5eaf590d8d46 /Modules/FetchContent.cmake | |
parent | acd82e46906cbd53cdce355456e43e224777a4ba (diff) | |
download | CMake-360ff17dc6e3dba2af56b13fa43b246633e13465.zip CMake-360ff17dc6e3dba2af56b13fa43b246633e13465.tar.gz CMake-360ff17dc6e3dba2af56b13fa43b246633e13465.tar.bz2 |
ExternalProject: Use ${ref}^0 to avoid MSYS/Cygwin shell substitutions
In 5e941a545b (ExternalProject: Ensure git fetch if updating to hash we
don't have yet, 2021-05-09), the form ${ref}^{commit} was used to ensure
the ref was treated as a commit. When running under a MSYS2 or
Cygwin shell, the {commit} part can be translated by the shell, leaving it as
${ref}^commit, which git doesn't understand. Use the equivalent but
safer form ${ref}^0, since it won't be subject to the shell substitution
issue.
Fixes: #22299
Diffstat (limited to 'Modules/FetchContent.cmake')
0 files changed, 0 insertions, 0 deletions