ExternalProject: Fix remote checkouts and omissions from git update strategy
The initial implementation of the git update strategy in !4239 (merged) had a number of problems:
- When using the
CHECKOUT
strategy, the local ref was mistakenly checked out instead of the remote one. The test case associated with this was not implemented correctly. - The
FetchContent
module was not passing through theCMAKE_EP_GIT_REMOTE_UPDATE_STRATEGY
variable if it was set. - No release note was added for the new functionality.
Edited by Craig Scott