You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just have a quick question. In a program, I utilize gitpython to update some scripts. I want to support proxies for the pull and fetch operations. Therefore, I tried various ways to set the http proxy for python. Cloning the repository via a proxy is not needed, because the repo is copied onto the machine during the installation of the program.
First attempt:
The operation completes successfully, but the proxy is not used. Instead gitpython directly communicates with the git server specified in uri_remote_git.
File "<stdin>", line 1, in <module>
File "C:\Users\dennis\AppData\Roaming\Python\Python39\site-packages\git\remote.py", line 910, in pull
res = self._get_fetch_info_from_stderr(proc, progress,
File "C:\Users\dennis\AppData\Roaming\Python\Python39\site-packages\git\remote.py", line 750, in _get_fetch_info_from_stderr
proc.wait(stderr=stderr_text)
File "C:\Users\dennis\AppData\Roaming\Python\Python39\site-packages\git\cmd.py", line 502, in wait
raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(129)
cmdline: git pull -v --config=http.proxy='http://34.145.226.144:8080' origin
stderr: 'error: unknown option `config=http.proxy='http://34.145.226.144:8080'''
Setting the environment variable http_proxy has no effect either – the proxy is ignored
Hi,
I just have a quick question. In a program, I utilize gitpython to update some scripts. I want to support proxies for the pull and fetch operations. Therefore, I tried various ways to set the http proxy for python. Cloning the repository via a proxy is not needed, because the repo is copied onto the machine during the installation of the program.
First attempt:
The operation completes successfully, but the proxy is not used. Instead gitpython directly communicates with the git server specified in
uri_remote_git
.Next try:
Same result as before.
Running:
Results in the following error:
Setting the environment variable http_proxy has no effect either – the proxy is ignored
Can you help me how to achieve this?
Thanks!
Dennis
The text was updated successfully, but these errors were encountered: