Skip to content

Can't Access Devops behind Proxy with Visual Studio Plugin OR 2.19.1 Git #1920

Closed
@Crashdummyy

Description

@Crashdummyy
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?

-- 2.14.4.2 ( 32-bit embedded in Visual Studio 2017 Professional ) => Broken
-- 2.17.1.2 ( 64 and 32 ) => both work fine
-- 2.19.1 (latest, both architectures) => Broken again

$ git --version --build-options

VisualStudio
$ ./git.exe --version --build-options
git version 2.14.4.windows.2
built from commit: c5ad43e5eda4db8c734cdc6e3cf6c53353f69557
sizeof-long: 4
machine: x86

Working
$ git --version --build-options
git version 2.17.1.windows.2
cpu: x86_64
built from commit: a60968cf435951d9411fc0f980a2e362d5cccea2
sizeof-long: 4
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
Windows 10 Enterprise, 64-Bit, Build 10.0.17134 .286

$ cmd.exe /c ver
10.0.17134 .286
  • What options did you set as part of the installation? Or did you choose the
    defaults?

Working 2.17.1.2

Editor Option: Nano
Path Option: CmdTools
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled

( Can't find them for Visual studio )

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Everything work(ed) fine locally and even Github.
The Connection just fails when I try to access AzureDevops behind our Proxy.
The Connection to git through a Proxy appears to work fine tho

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Bash with 2.17.1.2 => Works fine
Team Explorer (embedded 2.14.1 in Visual Studio) => Broken

Literally everything...
  • What did you expect to occur after running these commands?

Basic Git Functionality like fetching

  • What actually happened instead?
Git failed with a fatal error.
Authentication failed for <giturl>
( Visual Studio Extension "Team Explorer" )

Error: cannot spawn /c/program files (x86)/microsoft visual studio/2017/professional/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory
Error encountered while cloning the remote repository: Git failed with a fatal error.
could not read Password for '<proxyUrl>': terminal prompts disabled
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?
Can't do that, Companies AzureDevops

** Additional Infos **

I was able to reproduce it to the CredentialManager.

  • If I delete the tenant.cache in the AppData I can do **one** operation till it fails again with the embedded Git in Visual Studio

  • on the latest Build ( commit 11a3092 ) 2.19.1, I need to re-enter my Proxy Credentials every time I do an operation

  • With 2.17.1.2 everything works fine..

  • I replaced git-core directory in **/libexec/git-core with the one from my 2.17.1.2 Installation and can then use the Team Explorer Extension again ( the embedded git from Visual Studio ).
    Although I just put back the Backup to reproduce the error, I can't find my Repo in Devops anymore but now fetch, clone etc. seems to work...

  • Checked it on a Colleagues PC and there I get the : "Git failed with fatal error, authentication failed for <our GitRepo's URL>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions