If you're doing git clone, then $gitRepo is already set as origin, any reason to add it again as upstream?