Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I just want to git pull like git bash #"D:/work/test_git" it's my local git folder, it's clone from remoterepo_path="D:/work/test_git"repo=git.Repo(repo_path)
repo.git.pull()it always show me these is no useful information in the net ENV: windows 10 |
Replies: 1 comment
Searching for You could try to use HTTPS remote URLs instead of the ones using SSH as this bypasses the need for a key entirely. Alternatively, you could use this portion of the docs to configure a custom ssh executable and pass the required ssh flags. ssh_executable=os.path.join(rw_dir, 'my_ssh_executable.sh')
withrepo.git.custom_environment(GIT_SSH=ssh_executable):
repo.remotes.origin.fetch()The example below sets a key, but can be used to pass any parameters. #!/bin/sh
ID_RSA=/var/lib/openshift/5562b947ecdd5ce939000038/app-deployments/id_rsa
exec /usr/bin/ssh -o StrictHostKeyChecking=no -i $ID_RSA"$@" |
GitPythoncallsgitin a way that hides the terminal which sometimes leads to authentication issues. Since the password is empty, I'd expect using the private key on the client machine not to be the problem.Searching for
Hist key verification failedyields this answer which points the finger at the remote host. Probably SSH wants to ask if using this host key is alright, as it apparently isn't known yet, but it can't as there is no Terminal.You could try to use HTTPS remote URLs instead of the ones using SSH as this bypasses the need for a key entirely. Alternatively, you could use this portion of the docs to configure a custom ssh executable and pass the required ssh flags.
ssh_executable