SourceTree crash on commit

Eric Langley October 6, 2019

Hello, 

Running Version 3.2.6 of SourceTree connect to a BitBucket Git repository.

When I run a Commit SourceTree crashes (every time) and the program to report the crash comes up. 

What can I look for to troubleshoot? 

 

Thanks,

 

~eric

 

14 answers

1 accepted

7 votes
Answer accepted
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 9, 2019

Hello Eric and welcome to the Community!

Thank you for reporting this issue upon commit. We can confirm this is caused by the lack of a username and email being set within Sourcetree. This issue will be resolved in a future release as well. To set a username and email, please review the following:

  • Within Sourcetree, select Tools > Options.
  • From within Options, ensure the following is entered:
  • Screen Shot 2019-10-09 at 12.06.43 PM.png

I hope this information proves helpful in allowing you to commit.

Regards,
Stephen Sifers

Tatyana Skripnikova October 10, 2019

I have the exact same problem and I do have the username and E-mail filled out. What could be the other ways to fix this?

Like # people like this
JBonavita October 10, 2019

I'm running into the exact same problem. I have both my user name and password filled in and it crashes on every commit.

Like # people like this
Alin Baesu October 11, 2019

I also had this problem, although my user name and pass were filled in by default. I did the following and it worked for me:

1. I deleted the user name and password from Options, left the fields blank.

2. Made a commit (it crashed).

3. Added the user name and password again.

It now commits without any issues so far.

Hope this is helpful.

Like # people like this
David Thompson October 16, 2019

Thanks for this. I was getting a crash when performing a commit, but only for a recently added repo. This fix worked.

Like # people like this
Mark Dalton October 18, 2019

Thanks for this, this fix worked perfectly for me, i also had a ssh key uploaded to client "SSH Client Configuration" that was not required

Like # people like this
Alexander Oss October 29, 2019

To be clear, the workaround above involves clearing, committing/crashing, and then re-entering the "Full Name" and "Email address" fields inside the "Default user information" panel on the "General" tab of the "Options" dialog box (as indicated in the screenshot, and not the user name and password).

Like # people like this
David Thompson October 30, 2019

So for me, it worked for a couple days and then broke again. The fix did not help. I ended up rolling back to v3.1.3 which fixed the issue for a couple days again. Then I had the User Information popup every time I tried to commit, whereupon I had to delete the user.config file in my AppData folder.

pocaltieri October 30, 2019

It worked for me. Make sure to use your username instead of FullName

Like # people like this
Dimitri Bervoets November 11, 2019

Solution of Alin Baesu worked for me.

Hope the bug will not be back ...

dev2webindiasolutions November 12, 2019

I also had this problem, although my user name and pass were filled in by default. I did the following and it worked for me:

1. I deleted the user name and password from Options, left the fields blank.

2. Made a commit (it crashed).

3. Added the user name and password again.

It now commits without any issues so far.

Hope this is helpful.

Like # people like this
Brian Lee November 13, 2019

I already had both the full name and email filled under 'Default user information' in General options. Originally I had my real name, then I switched it to my Atlassian username. No difference, it still keeps crashing. 

Running on a Windows 8 and I'm using an application password with basic auth.

Saurabh Gupta November 20, 2019

Removing the username and password and rentering the same worked for me.

Thanks for the solution.

jonscott-sheldon November 24, 2019

The workaround presented did work for me.

But, will this issue be patched?  Rather ridiculous to have a git client crash on commit, seems like an important thing to fix.

 

Like Daren Thomas likes this
lahirugunasena November 28, 2019

Username must be with out spaces. "MichealClarke" like this..

Exequiel Lagrada December 1, 2019

Thanks man ! your solution solved my problem !

Craig_Colomb December 3, 2019

Confirmed, username cannot have spaces. Sheesh.

Like Grégory Lamour likes this
kengkreingkrai January 1, 2020

I solved problem with comment of dev2webindiasolutions, Thank you

I also had this problem, although my user name and pass were filled in by default. I did the following and it worked for me:

1. I deleted the user name and password from Options, left the fields blank.

2. Made a commit (it crashed).

3. Added the user name and password again.

It now commits without any issues so far.

Hope this is helpful.

7 votes
KEMBL November 12, 2019
  • Within Sourcetree, select Tools > Options.
  • From within Options, remove Full name and Email address
  • perform in the command line:

git config --global user.email "PUT.YOUR.GIT@EMAIL.HERE"

git config --global user.name "PUT.YOUR.GIT.USER.HERE"

try to commit again. After it when I opened Options the Full name and Email address fields were filled-in properly.

(!) in the command line, you will probably need to change the current folder to one where GIT executable resides.

As an alternative way you can try to edit c:\Users\<YOUR.USER.NAME>\.gitconfig file like below and restart Sourcetree app.


[user]
name = PUT.YOUR.GIT.USER.HERE
email = PUT.YOUR.GIT@EMAIL.HERE
[difftool "sourcetree"]
cmd = '' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = "'' "
trustExitCode = true

Vlad Crisan November 14, 2019

This solved the problem in the end. Thanks!

Pajar Dewa Saputra November 15, 2019

thank's a lot , this work for me!

artuursaljeksejevs November 21, 2019

This solves

reethu s November 21, 2019

adding name n email again wored for me as well

s7197 November 25, 2019

The git CLI method did it for me, although I didn't get the sourcetree fileds automatically repopulated, and it took a couple of attempts befor it worked.

1 vote
Stacey Dunstan November 6, 2019

Worked for me:

- Deleted username and email.

- It crashed.

- Re inserted username and email.

- Now it works :)

Pitthawat Wajeethongrattanaa November 19, 2019

it work thx xd

0 votes
Matthew Mckenzie December 31, 2019

Also make sure that the Authentication tab is set up correctly or the commit can't work at all:

Capture.PNG

0 votes
Mohammed Amer December 12, 2019

Hi @Eric Langley  delete the user name and password from Options, leave the fields blank

Make a commit, it will crash for sure. Then add the user name and password again then do a commit, it will work fine.

0 votes
Daren Thomas December 12, 2019

I am seeing this issue with v3.2.6.3544 regardless of the state of the Default user information.

Sebastien_Portier December 12, 2019

In case of, try without space

Daren Thomas December 12, 2019

I tried that without success.

0 votes
Sebastien_Portier December 12, 2019

Hi,

Had the same issue when there is a space in the full name.

Without space it's working fine

SourceTree version 3.2.6.3544

0 votes
taleonluo December 11, 2019

I just removed my email and kept my full name. then it worked for me to commit

0 votes
Mohammed Amer December 11, 2019

I followed the steps of "Alin Baesu" and it worked for me!!!

0 votes
Venkat Chimakurthy November 22, 2019

Alin's solution worked perfectly for me.

0 votes
Stephen Stryker November 18, 2019

I was able to resolve this by simply deleting the Username and Email completely, saving those changes, closing the program and restarting it, then entering the Username and Email manually.

0 votes
Brian Lee November 13, 2019

What worked for me: 

  • I already had my name and email under default user information in general options. It was still crashing.
  • What I was missing was the default project folder. Once I filled it in under General options, no more crashing.
0 votes
Shreyans Jain November 5, 2019

thanks this worked for me as well but what we should  add in the option for selecting folder in repository

0 votes
mikegoldberg October 29, 2019

Same exact issue and Alin's instructions above worked like a charm.. Thanks for the help!

JBonavita November 5, 2019

@mikegoldberg Welcome!

Read the previous responses. You should remove your account and re-add it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events