load all roots for git and for sync hg
(cherry picked from commit f56e798)