Switch to using ssh_url

The previous commit used the wrong URL for a private repo. This was
masked by the lack of error loging in logging_subprocess (which will be
in a separate branch)
This commit is contained in:
Chris Adams
2015-03-13 15:39:35 -04:00
parent 3bc23473b8
commit 040516325a

View File

@@ -249,9 +249,7 @@ def backup_repositories(args, output_directory, repositories):
repo_url = repository['clone_url']
if args.prefer_ssh:
git_url = repository.get('git_url')
if git_url:
repo_url = git_url
repo_url = repository['ssh_url']
git_command = ['git', 'clone', repo_url, 'repository']
logging_subprocess(git_command, logger=None, cwd=repo_cwd)