summaryrefslogtreecommitdiffstats
path: root/Tests/CTestUpdateGIT.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-04-23 13:10:07 (GMT)
committerBrad King <brad.king@kitware.com>2009-04-23 13:10:07 (GMT)
commitd847ca8e270685826222b4ab106a380f9a5e7db0 (patch)
treefbbe5d37ed48b9e572453e9a2b4ec547ebb19210 /Tests/CTestUpdateGIT.cmake.in
parentf353df7ffc027c8d61d34581679f5dcafe2c0fc3 (diff)
downloadCMake-d847ca8e270685826222b4ab106a380f9a5e7db0.zip
CMake-d847ca8e270685826222b4ab106a380f9a5e7db0.tar.gz
CMake-d847ca8e270685826222b4ab106a380f9a5e7db0.tar.bz2
BUG: Fix CTest.UpdateGIT test for older git
Older git versions do not support 'git init --bare', so we instead use the more proper 'git --bare init'.
Diffstat (limited to 'Tests/CTestUpdateGIT.cmake.in')
-rw-r--r--Tests/CTestUpdateGIT.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CTestUpdateGIT.cmake.in b/Tests/CTestUpdateGIT.cmake.in
index 0ffca65..2606254 100644
--- a/Tests/CTestUpdateGIT.cmake.in
+++ b/Tests/CTestUpdateGIT.cmake.in
@@ -31,7 +31,7 @@ message("Creating repository...")
file(MAKE_DIRECTORY ${TOP}/repo.git)
run_child(
WORKING_DIRECTORY ${TOP}/repo.git
- COMMAND ${GIT} init --bare
+ COMMAND ${GIT} --bare init
)
file(REMOVE_RECURSE ${TOP}/repo.git/hooks)
set(REPO file://${TOP}/repo.git)