new: adding some dokku remotes

This commit is contained in:
Matthew Ryan Dillon 2021-04-07 21:37:49 -07:00
parent fad7921389
commit 5add969f6e
2 changed files with 16 additions and 1 deletions

View file

@ -18,6 +18,10 @@ def init_repo(repo_name, repo_fp, remote, remote_name, callbacks,
print('already cloned %s' % remote)
repo = pygit2.Repository(repo)
try:
repo.remotes[remote_name]
except:
repo.remotes.create(remote_name, remote)
for peer in github_peers:
url = 'ssh://git@github.com/%s/%s' % (peer, repo_name)