summaryrefslogtreecommitdiff
path: root/Tests/CTestUpdateGIT.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-08-03 16:07:31 -0400
committerCMake Topic Stage <kwrobot@kitware.com>2010-08-03 16:07:31 -0400
commite6067ca969edb2f20f4fc17735d74924f534b1a5 (patch)
treed0e2024c5294b6eb671e82425933c49a3e2350be /Tests/CTestUpdateGIT.cmake.in
parent8342eacda7dd78c8776de63d7fe300d751f26f61 (diff)
parenta7319cf1c155a0e82c88689c0b4fe54b389a580e (diff)
downloadcmake-e6067ca969edb2f20f4fc17735d74924f534b1a5.tar.gz
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/CTestUpdateGIT.cmake.in')
-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 f672a524ee..793b9870da 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}