From d847ca8e270685826222b4ab106a380f9a5e7db0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 23 Apr 2009 09:10:07 -0400 Subject: [PATCH] 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'. --- Tests/CTestUpdateGIT.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/CTestUpdateGIT.cmake.in b/Tests/CTestUpdateGIT.cmake.in index 0ffca6516..2606254fd 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)