question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authentication failed cloning public repo containing submodules

See original GitHub issue

Description

When cloning my repo using HTTPS containing two submodules, I receive the following: githuberror

  • This error does not appear when using GitHub Desktop to clone the submodules individually.

  • This error does not appear when using terminal to clone my repo git clone -recursive https://github.com/erikmartinessanches/javadev.git but git prompts for password twice (for each submodule, how to enable cloning without password?)

Version

git version 2.11.0 (Apple Git-81)

GitHub Desktop version: 0.7.0

OS version: Mac OS version 10.12.5 (16F73)

Steps to Reproduce

  1. Select Open in Desktop (HTTPS option) on my repo
  2. Optionally adjust directory details
  3. Error appears

I’ve tried signing out of GitHub and GitHub Desktop and signing in again, does not resolve.

Expected behavior: Clone repo with or without submodules.

Actual behavior: Only the outer repo seems to get cloned, then the error above appears, the submodule repos are not cloned.

Reproduces how often: 100%

Logs

2017-07-27.desktop.production.log.zip

Additional Information

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
fluffycommented, Aug 30, 2021

Having exactly this issue. Hard to believe this has been open since 2017.

2reactions
varunsinghal65commented, Oct 24, 2018

Hello @erikmartinessanches, I faced the exact same issue, for me even terminal was not working. This was after my repo was configured to target HTTPS url and not SSH.

As i workaround i deleted the stored credentials (windows) : Credentials Manager -> Manage windows credentials -> delete all stored credentials for GIT

After this it worked from terminal as well as the UI (Git ext)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fatal Error when updating submodule using GIT
The issue is that git can't find the public key needed to download the repo from your server, the solution is to use...
Read more >
Authentication failure when updating submodules using fetch ...
Run job from project 'A' having submodule 'B' with fetch strategy of normal ... init command is run following a fresh clone of...
Read more >
Ability to configure submodule authentication different from the ...
I have a project with submodules. The main project comes from Bitbucket and the submodules from Github. I use one SSH key for...
Read more >
Checkout of Git repository with submodules failed in Bamboo
Solution. Submodules accessed via SSH. Upgrade to Bamboo 8.1.1 which provides submodule authentication support: BAM-11369 - ...
Read more >
git submodule checkout fails on host key verification
Checkout submodules doc shows 'Make sure that you have registered your submodules using HTTPS and not using SSH.'So we recommend you use 'https'...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found