Commit d847ca8e authored by Brad King's avatar Brad King

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'.
parent f353df7f
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment