Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone GitLab repository using HTTPS. #9926

Closed
GusMCoutinho opened this issue Jun 3, 2020 · 1 comment
Closed

Clone GitLab repository using HTTPS. #9926

GusMCoutinho opened this issue Jun 3, 2020 · 1 comment

Comments

@GusMCoutinho
Copy link

GusMCoutinho commented Jun 3, 2020

Describe the bug

I'm working on Windows x64 and I'm using GitHub Desktop to clone a GitLab repository (via HTTPS). When trying to clone the repository I got an error window that shows some actions to perform but they are not suitable for my case. The log message can be found down below.

Version & OS

Windows x64
GitHub Desktop Version 2.5.0

Steps to reproduce the behavior

  1. Go to 'File > Clone Repository...'
  2. Click on 'URL'
  3. Copy the HTTPS url from GitLab project (Repository > Clone > HTTPS) and paste in 'Repository URL'
  4. Choose 'Local path'
  5. Starts clonning (but without progress) and error message appears after couple seconds.

Expected behavior

A window pop-up with the title 'Authentication failed' and with two fields to be filled: Username and Password. (where i can add the GitLab username and access token generated in GitLab for my user)

Actual behavior

Error window appear mentioning some actions to take (actions also mentioned in log).

Logs

Note: I edited the URL for security reasons.

" (...)
2020-06-03T08:50:46.479Z - error: [ui] git -c credential.helper= clone --recursive --progress -- https://.../my-repository.git C:\Temp\GitHubDesktop-Repositories\my-repository exited with an unexpected code: 128. stderr: Cloning into 'C:\Temp\GitHubDesktop-Repositories\my-repository'... remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://.../my-repository.git/' (The error was parsed as 3: Authentication failed. Some common reasons include:

You are not logged in to your account: see File > Options.
You may need to log out and log back in to refresh your token.
You do not have permission to access this repository.
The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)"

Additional context

I already tried to:

  • Unistall GitHub Desktop

  • Delete C:\Users\MyUser\Roaming\AppData\GitHub Desktop

  • Confirm that Control Panel\All Control Panel Items\Credential Manager does not have any GitHub credential

  • I'm not logged in GitHub, as the repository is from GitLab and no login is necessary in this case (except from the necessary authentication i would like to configure "username and password/access token" that should pop-up when trying to clone).

  • Restart laptop after everything above was done.

Proposal

Is it possible to include some section to configure the username and password (access token) before start clonning via HTTPS?

@niik
Copy link
Member

niik commented Jun 3, 2020

Hey @GusMCoutinho, sorry to hear you're having problems. This is a known issue with the last release, see #9843. We have fixed the problem and fix is available on our beta channel and it will be included in the next release of the production version of the app (which we're hoping to release today).

If you need a fix right now we recommend downloading the beta version.

@niik niik closed this as completed Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants