support rootDir when create git workspace
Merge commit '97853117aadd790d826238bbf2faa11ab20afe14' into rock/git