From 2a3e263173e10de4a067a9de61318f6d6e0f0f17 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 16 Dec 2014 14:51:06 -0500 Subject: Tests: Fix CheckSourceTree test for newer Git The output of 'git status' no longer starts each line in '#'. Match that optionally. --- Tests/CMakeTests/CheckSourceTreeTest.cmake.in | 4 ++-- 1 file 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() -- cgit v0.12