diff options
author | Brad King <brad.king@kitware.com> | 2010-08-03 20:07:31 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-08-03 20:07:31 (GMT) |
commit | e6067ca969edb2f20f4fc17735d74924f534b1a5 (patch) | |
tree | d0e2024c5294b6eb671e82425933c49a3e2350be /Tests | |
parent | 8342eacda7dd78c8776de63d7fe300d751f26f61 (diff) | |
parent | a7319cf1c155a0e82c88689c0b4fe54b389a580e (diff) | |
download | CMake-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.in | 5 |
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} |