summaryrefslogtreecommitdiff
path: root/Modules/FindGit.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2020-10-17 21:16:22 +1100
committerBrad King <brad.king@kitware.com>2021-01-28 09:32:35 -0500
commitac6a4d488446cb1e906c4b55fd055547dacd55c4 (patch)
treeaaa082df07f18a01a53efbbc0ecb37efba25ada5 /Modules/FindGit.cmake
parent17c4c8b92b63b8ce920dd7db38bab4a772990cce (diff)
downloadcmake-ac6a4d488446cb1e906c4b55fd055547dacd55c4.tar.gz
ExternalProject: Improve robustness of update step
Refactor the update logic to make it easier to follow. The following fixes/improvements are some consequences of this change: * Absorb a confusing git checkout failure message when the failure is allowed and we act on that failure appropriately. * Fix an unnecessary fetch in some scenarios when checking out a git hash we already have locally. * Stash and restore any local changes even when not rebasing. * Avoid unsafe rebasing where we are not on a branch that is already tracking the requested branch. * When fetching, use --tags --force to ensure we get all the tags and commits leading up to them regardless of whether the tags are on branches or not. Also update our local tags if they move on the remote. Fixes: #20677
Diffstat (limited to 'Modules/FindGit.cmake')
0 files changed, 0 insertions, 0 deletions