Clone repository failed, error: Repository test has failed

Asked

Viewed 244 times

3

I’m trying to clone a repository. Bitbucket. But it gives this error:

Repository test has failed

In Settings the git path is correct.

To create I try to create at the opening moment of Android Studio

  • Check out project from Version Control > Git
  • I type in the information
  • I’m going in Test

Then comes the:

Repository test has failed

also gives this!

também dá isso!

Does anyone know how to solve?

that by the cmd ...

esse pelo cmd

  • has access to git from the command line??

  • yes, the error is when I try to clone the repository.

  • try this on the command line. git init; git clone -v [email protected]:usuario/repositorio.git and see what happens. An alternative would be to use Sourcetree [https://www.sourcetreeapp.com]

  • this is what comes with cmd. [added another image]

  • trying now to use Sourcetree. It gives the same error when trying to clone the same repository.

  • I got it. Thank you, for your help!

Show 1 more comment

2 answers

1

I GOT IT. After 2 full days of searching, Ufa. The error was in the directory of a Git security certificate itself, I don’t know if it was an error at the time of installation or was changed with the installation of another software, but the important thing is that I was able to change this directory (Cafile:) with the following command line:

> git config --system http.sslcainfo "C:\Program Files\git\bin\ca-bundle.crt"

0

According to this response from Soen you must have to point out the executable of git,

  1. Download and install git: http://git-scm.com/downloads

  2. Point the git.exe at Androidstudio:

    • Settings > Project Settings > Version Control > Vcss > Git > Path to Git Executable:

    • Select (or type) the executable pro path, for example: C:\Program Files (x86)\Git\cmd\git.exe

  • I do exactly that. But the error persists. I will add another image.

  • Yes! Do the same!

  • windows 8 !!!!!

  • I got it. Thank you, for your help!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.