fixed controller to give gitrepo the basePath