Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Sep 14, 2022
1 parent bd8331b commit 2a7752b
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -32,6 +32,8 @@ def clone(self, ssh_key: SecretStr, repo_url: str) -> Path:

git_ssh_cmd = f"ssh -i {git_ssh_identity_file}"
if self.skip_known_host_verification:
# Without this, the ssh command will prompt for confirmation of the host key.
# See https://stackoverflow.com/a/28527476/5004662.
git_ssh_cmd += (
" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
)
Expand Down

0 comments on commit 2a7752b

Please sign in to comment.