Merge "Handle existing .ssh dir on merger"

This commit is contained in:
Zuul 2018-11-19 19:43:39 +00:00 committed by Gerrit Code Review
commit 33699fa316
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class Repo(object):
username = url.username or self.username
path = os.path.expanduser('~/.ssh')
os.makedirs(path)
os.makedirs(path, exist_ok=True)
path = os.path.expanduser('~/.ssh/known_hosts')
if not os.path.exists(path):
with open(path, 'w'):