Fixed repo name parsing to handle 'git' in repo name.