moved logic for getting remoteUrl from index.js to git.prepareRepo