Skip to content

Credential Manager doesn't work in Windows Containers with BusyBox MinGit #1498

Closed
@dhirschfeld

Description

@dhirschfeld
  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
C:\> git --version --build-options
git version 2.16.1.windows.4
cpu: x86_64
built from commit: ef6d451bbfef86a529ebf12620289e0f15a93d8e

Running on a windowsservercore:1709 container:

C:\> (Get-CimInstance Win32_OperatingSystem).version
10.0.16299
C:\> cmd.exe /c ver

Microsoft Windows [Version 10.0.16299.192]
  • What options did you set as part of the installation? Or did you choose the
    defaults?

I just unzipped the prebuilt release

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

Running on a Windows Container

Details

  • Running from powershell
C:\> git clone https://github.stanwell.com/Trading/skeleton.git
Cloning into 'skeleton'...
bash: Unhandled device /dev/tty

cat: write error: Bad file descriptor
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.stanwell.com/Trading/skeleton.git': No error
C:\>

Note: The credential manager works correctly with the full .exe installer

C:\> git clone https://github.stanwell.com/Trading/skeleton.git
Cloning into 'skeleton'...
Logon failed, use ctrl+c to cancel basic credential prompt.
Username for 'https://github.stanwell.com': dhirschfeld
Password for 'https://[email protected]':
remote: Counting objects: 28, done.
remote: Total 28 (delta 1), reused 1 (delta 1), pack-reused 26
Unpacking objects: 100% (28/28), done.

...however I'd like to user the BusyBox version as it fixes #1403/#1007 when running in a Windows Container.

What I'm hoping for is a git version which both allows cloning from a host-mapped volume and allows entering the username/password for the credential manager.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions