configured http.proxy works for git but not for jgit -
lets show --global .gitconfig first, git , jgit sees it!!! dos window cgywin window
e:\> git config --list --global http.auth.preference=basic user.name=josef stadelmann user.email=josef.stadelmann@axa-winterthur.ch http.proxy=http://c770817:mypassword@bcproxyserver.ch.winterthur.com:8080 e:\> now lets cygwin window jgit
$ jgit config --list --global http.auth.preference=basic user.email=josef.stadelmann@axa-winterthur.ch user.name=josef stadelmann http.proxy=http://c770817:mypassword@bcproxyserver.ch.winterthur.com:8080 we can see same configuration why does
c770817@c036357 ~ $ jgit ls-remote https://github.com/stadelma/helloworld.git fatal: connection time out: github.com fatal: https://github.com/stadelma/helloworld.git: cannot open git-upload-pack timeout but
c770817@c036357 ~ $ git ls-remote http://github.com/stadelma/helloworld.git 35f375cb64208b64ed499c2a47727dfcd8813dea head 35f375cb64208b64ed499c2a47727dfcd8813dea refs/heads/master c770817@c036357 ~ $ works reading same .gitconfig @
/cygdrive/e/mingw/home/.gitconfig ????
any advise welcome - or - shall start debugging jgit ?
josef
you can try , see if environment variable work better, java option like:
-dhttp.proxyhost=myproxyhosturl -dhttp.proxyport=8080 -dhttp.nonproxyhosts=”localhost|mybambooserverurl” as in this question:
dhttp.proxyhost– proxy ip addressdhttp.proxyport– proxy portdhttp.proxyuser– user name if http-proxy authentication required;dhttp.proxypassword– user password if http-proxy authentication required.
Comments
Post a Comment