Skip to content
  • Matt McCormick's avatar
    ExternalProject: Only run 'git fetch' when required. · d0758290
    Matt McCormick authored
    In the current default update step for Git under the ExternalProject_Add
    command, a 'git fetch' is always performed, followed by a 'git checkout' and
    'git submodule update --recursive'.  However, a 'git fetch' can be time
    consuming and requires a network connection.
    
    To save time, we look at the current checked out hash, and only perform the
    fetch if required.  This is performed in a CMake script so we can handle
    the conditional logic in a cross platform manner.
    d0758290