added support for rev branch when using deepth parameter
Merge pull request #19071 from mikaelhm/add-depth-to-git-latest

added support for rev branch when using deepth parameter