Commit 9d6b7bed authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'fix-CTestUpdateHG-url'

d0702f82 CTest.UpdateHG: Fix repo URL for leading slash
parents e38e6bdb d0702f82
......@@ -28,7 +28,10 @@ run_child(
WORKING_DIRECTORY ${TOP}/repo.hg
COMMAND ${HG} init
)
set(REPO file:///${TOP}/repo.hg)
if(NOT "${TOP}" MATCHES "^/")
set(slash /)
endif()
set(REPO file://${slash}${TOP}/repo.hg)
#-----------------------------------------------------------------------------
# Import initial content into the repository.
......
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