mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
Merge topic 'ep-stash-options'
ac4a8002a5 ExternalProject: Don't git stash ignored files
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5390
This commit is contained in:
@@ -1422,10 +1422,13 @@ function(_ep_write_gitupdate_script script_filename git_EXECUTABLE git_tag git_r
|
||||
if("${git_tag}" STREQUAL "")
|
||||
message(FATAL_ERROR "Tag for git checkout should not be empty.")
|
||||
endif()
|
||||
if(NOT GIT_VERSION_STRING VERSION_LESS 1.7.6)
|
||||
set(git_stash_save_options --all --quiet)
|
||||
else()
|
||||
set(git_stash_save_options --quiet)
|
||||
set(git_stash_save_options --quiet)
|
||||
if(GIT_VERSION_STRING VERSION_GREATER_EQUAL 1.7.7)
|
||||
# This avoids stashing files covered by .gitignore
|
||||
list(APPEND git_stash_save_options --include-untracked)
|
||||
elseif(GIT_VERSION_STRING VERSION_GREATER_EQUAL 1.7.6)
|
||||
# Untracked files, but also ignored files, so potentially slower
|
||||
list(APPEND git_stash_save_options --all)
|
||||
endif()
|
||||
|
||||
configure_file(
|
||||
|
||||
Reference in New Issue
Block a user