summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-08-03 20:07:31 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2010-08-03 20:07:31 (GMT)
commite6067ca969edb2f20f4fc17735d74924f534b1a5 (patch)
treed0e2024c5294b6eb671e82425933c49a3e2350be /Tests
parent8342eacda7dd78c8776de63d7fe300d751f26f61 (diff)
parenta7319cf1c155a0e82c88689c0b4fe54b389a580e (diff)
downloadCMake-e6067ca969edb2f20f4fc17735d74924f534b1a5.zip
CMake-e6067ca969edb2f20f4fc17735d74924f534b1a5.tar.gz
CMake-e6067ca969edb2f20f4fc17735d74924f534b1a5.tar.bz2
Merge topic 'ctest-git-flexibility'
a7319cf ctest_update: Run 'git submodule' at top level 7bf8dc1 ctest_update: Support ".git file" work trees 65cb72f ctest_update: Abort if Git FETCH_HEAD has no candidates
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CTestUpdateGIT.cmake.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CTestUpdateGIT.cmake.in b/Tests/CTestUpdateGIT.cmake.in
index f672a52..793b987 100644
--- a/Tests/CTestUpdateGIT.cmake.in
+++ b/Tests/CTestUpdateGIT.cmake.in
@@ -275,6 +275,11 @@ execute_process(
WORKING_DIRECTORY \"${TOP}\"
COMMAND \"${GIT}\" clone \"${REPO}\" dash-source
)
+
+# Test .git file.
+file(RENAME \"${TOP}/dash-source/.git\" \"${TOP}/dash-source/repo.git\")
+file(WRITE \"${TOP}/dash-source/.git\" \"gitdir: repo.git\n\")
+
execute_process(
WORKING_DIRECTORY \"${TOP}/dash-source\"
COMMAND \"${GIT}\" reset --hard ${revision1}