diff options
author | Brad King <brad.king@kitware.com> | 2014-12-16 19:51:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-12-16 19:51:06 (GMT) |
commit | 2a3e263173e10de4a067a9de61318f6d6e0f0f17 (patch) | |
tree | 8a23c62bc6c4297f9821920d485edd101a3ac00b /Tests | |
parent | f30bac5eb47b06d90be57d9aa8f176eeba1c9152 (diff) | |
download | CMake-2a3e263173e10de4a067a9de61318f6d6e0f0f17.zip CMake-2a3e263173e10de4a067a9de61318f6d6e0f0f17.tar.gz CMake-2a3e263173e10de4a067a9de61318f6d6e0f0f17.tar.bz2 |
Tests: Fix CheckSourceTree test for newer Git
The output of 'git status' no longer starts each line in '#'.
Match that optionally.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeTests/CheckSourceTreeTest.cmake.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeTests/CheckSourceTreeTest.cmake.in b/Tests/CMakeTests/CheckSourceTreeTest.cmake.in index 59b2890..33fe5f3 100644 --- a/Tests/CMakeTests/CheckSourceTreeTest.cmake.in +++ b/Tests/CMakeTests/CheckSourceTreeTest.cmake.in @@ -268,12 +268,12 @@ if(NOT ov STREQUAL "") if(consider) if(is_git_checkout) - if(line MATCHES "^#[ \t]*modified:") + if(line MATCHES "^#?[ \t]*modified:") message(" locally modified file detected...") set(modifications 1) endif() - if(line MATCHES "^# Untracked") + if(line MATCHES "^(# )?Untracked") message(" locally non-added file/directory detected...") set(nonadditions 1) endif() |