Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot clone a repository from Github using Sourcetree, embedded git command line works perfectly.

Ross Saunders January 4, 2016

One of our repositories in Github does not clone when using Sourcetree. We do not receive any meaningful error in Sourcetree. Other repos in the same organisation are fine, permissions seem fine on github. This is happening on multiple systems in our organisation. We also get an error for "templates not found" but this does not seem to affect other repos. Using SourceTree 1.7.0.32509 and some earlier versions from December.

error.png

Using the same command in the git embedded commandline from Appdata\local\atlassian\sourcetree\git_local\cmd\ the repo pulls down correctly with no errors.

cmdline.png

Any help would be greatly appreciated, I'm wondering whether it is a bug in SourceTree but cannot seem to find any location where I can log this.

4 answers

2 votes
Kunal Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2016

Just keep it running for 5-10 minutes. It will clone eventually.

 

Federico Isepon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 28, 2016

that's right. 5-10 minutes of any minimal sign of life, but finally works

1 vote
Pavan Kalyan Tolety January 27, 2018

Remove all accounts in Tools>Options>Authentication.

Now Go to Git tab and Click on Update Embedded git.

Then restart Sourcetree.

Now Click use Embedded git and restart again.

Now try to clone the git repository and type your ID and password when asked and you should see the cloning happens now..

If it still shows the error then switch to System git in git tab. Please update system git version to the latest when you do so

1 vote
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 4, 2016

There are some possible solutions in answers here: https://answers.atlassian.com/questions/250260

Ross Saunders January 4, 2016

Hi Seth, this has resolved the warning regarding the templates, but does not solve the lack of error message. Using System Git we get a bit more feedback, basically the clone fails at 73% with no actual error message.

Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2016

Sounds strange. If nobody else has any helpful ideas here, you might file a bug report on jira.atlassian.com, which should get the attention of Atlassian staff. In the meantime, are you cloning often? If I was having your issue, I'd just clone via command line and move on. It's not an operation I've performed in months.

Ross Saunders January 5, 2016

We've had it on two different repositories in our testing today. Have filed a bug report, thanks!

hezll
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2016

I change the embeded git to system git . it works.

Like jmcerrejon likes this
0 votes
RealCoChenchao
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 4, 2019

change the Auth type from OAuth to Basic?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events