Explorar o código

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'.
Brad King %!s(int64=16) %!d(string=hai) anos
pai
achega
d847ca8e27
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Tests/CTestUpdateGIT.cmake.in

+ 1 - 1
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)