Skip to content

Git clone fails on Windows (access denied) #646

@folmert

Description

@folmert

Expected Behavior

$ git clone -v --branch production https://gitlab.foo.com/dev/tc/bar-frontend.git ./bin/widgets/tmp/bar
Cloning into './bin/widgets/tmp/bar'...
POST git-upload-pack (398 bytes)
POST git-upload-pack (gzip 2312 to 1132 bytes)
remote: Enumerating objects: 7449, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 7449 (delta 0), reused 0 (delta 0), pack-reused 7421
Receiving objects: 100% (7449/7449), 3.93 MiB | 4.25 MiB/s, done.
Resolving deltas: 100% (5066/5066), done.

Actual Behavior

$ git clone -v --branch production https://gitlab.foo.com/dev/tc/bar-frontend.git ./bin/widgets/tmp/bar
Cloning into './bin/widgets/tmp/bar'...
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password.

Steps to Reproduce the Problem

  1. Try to run a script with git clone command on Windows 10
  2. It will hang on git clone
  3. Ctrl+C will show the error about denied access, which doesn't make any sense, as running the same git clone command from cmd works flawlessly

Specifications

  • Version: newest (7.2.0)
  • Platform: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions