What if you just set up an nginx reverse proxy?
gitrepo.mycompany.com/product.git --> reverse proxy to git.mycompany.com/gitrepo/product.git
Should be straight forward in nginx
gitrepo.mycompany.com/product.git --> reverse proxy to git.mycompany.com/gitrepo/product.git
Should be straight forward in nginx