<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 15, 2017, at 2:09 AM, Robert Helling <<a href="mailto:helling@atdotde.de" class="">helling@atdotde.de</a>> wrote:</div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Cloud storage: successfully checked connection to cloud server</div><div style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">git storage: fetch remote</div><div style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">git storage: Successful cloud connection, fetch remote</div><div style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><b style="background-color: rgb(255, 255, 255);" class=""><font color="#ff0000" class="">remote fetch failed (Failed to set proxy: Parametro non corretto.</font></b></div><div style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">)</div><div style="font-family: Menlo-Regular; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">git storage: Done syncing with cloud storage</div></div></blockquote></div><div class=""><br class=""></div>I looked for the origin of this error message. “remote fetch failed” is Subsurface talking, “failed to set proxy” is libgit2. This only occurs in winhttp.c when a call to WinHttpSetOption fails. </div><div class=""><br class=""></div><div class="">So I googled for that call and found </div><div class=""><br class=""></div><div class=""><a href="https://msdn.microsoft.com/de-de/library/windows/desktop/aa384114(v=vs.85).aspx" class="">https://msdn.microsoft.com/de-de/library/windows/desktop/aa384114(v=vs.85).aspx</a></div><div class=""><br class=""></div><div class="">Most of this I don’t understand (having touched no windows system for a very long time. But my guess that the only thing that could be non-corretto would be the proxy url (and that part of the code that has this error message is only run when proxy_url is non-NULL). But of course it should be empty (and the fact that Subsurface says earlier "<font face="Menlo-Regular" class="">delete proxy setting” should mean that that parameter got deleted.</font></div><div class=""><font face="Menlo-Regular" class=""><br class=""></font></div><div class=""><font face="Menlo-Regular" class="">So it would be interesting to know what libgit2 thinks should be the proxy url.</font></div><div class=""><font face="Menlo-Regular" class=""><br class=""></font></div><div class=""><font face="Menlo-Regular" class="">Unfortunately, I cannot build windows binaries but if anybody can I would say it’s worth trying to apply this patch to llibgit2 and then see what it produces.</font></div></div></div></blockquote><div><br class=""></div>Fun fact: if you push to a branch on Subsurface-divelog/subsurface (which you can, Robert), the CI will build a Windows binary for you. And even for a PR it will do that (and the log will show you where on transfer.sh the binary can be found.</div><div><br class=""></div><div>What I noticed when trying to debug Davide's problem before (the problem that on Windows we don't support a proxy with password) is that libgit2 apparently is talking directly to winhttp and that that doesn't understand proxy URLs with password embedded in them. So clearly Davide is correct and his previous proxy settings are somehow retained.</div><div><br class=""></div><div>I got side-tracked by all the Travis work and didn't continue to investigate this - I had started a branch where I was trying to use the new proxy callback feature in libgit2 0.26 to try to work around this issue.</div><div><br class=""></div><div>BTW, Davide, are you testing a binary from downloads/testing, or a binary from GitHub? Those are slightly different - but both of them should handle settings the same way... IIRC I switched the on on GitHub around to no longer link against libcurl as clearly that proxy functionality wasn't used on Windows...</div><div><br class=""></div><div>/D</div><div><br class=""></div></body></html>