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

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.

3 answers

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

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.

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.

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

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

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

 

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

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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

649 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you