Unable to find git Edited

be1fb8d15cI get this everytime I launch sourcetree.

 

Now when I click the top, it downloads and this appears again.

If I click the second, it just reopens this dialog. Doesn't open the Open File Dialog.

If I click the third it just reopens again.

and the 4th closes it and I can't use it.

2 answers

0 votes

Hi

Sourcetree stores a path to the git.exe it is using, when it starts it will run git.exe --version to check it is where it thinks it is etc.

If that git.exe -version fails it will pop this dialog.

It sounds like the git -version call is failing for some reason. Is there anything in %localappdata%\Atlassian\Sourcetree\Sourcetree.log?

Has Sourcetree successfully downloaded git? It should be in %localappdata%\Atlassian\Sourcetree\git_local. If it is and you open a console and run %localappdata%\Atlassian\Sourcetree\git_local\cmd\git.exe -version what does that give you back?

ERROR [2017-11-15 22:45:39,124] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
ERROR [2017-11-15 22:49:50,560] [1] [SourceTree.App] [OnStartup] - Failed to start
System.NullReferenceException: Object reference not set to an instance of an object.
at SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](String title, String message, Tuple`2 customAction, String cancelLabel, String suppressionSetting, Action`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)
at SourceTree.Security.PageantSshKeyAgent.Launch(Boolean promptForKeyIfBlank, String keyfile)
at SourceTree.Security.DefaultSshKeyManager.LaunchSshAgent(Boolean promptForKeyIfBlank, String keyfile)
at SourceTree.AppRoot.OnboardIfRequired()
at SourceTree.AppRoot.OnStartup(StartupEventArgs e)
at SourceTree.App.OnStartup(StartupEventArgs e)
ERROR [2017-11-15 22:50:01,706] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied

Unfortunately that error is not to do with finding Git, however that should be fixed in v2.3.5.0. What version are you running?

were you able to check the following?


Has Sourcetree successfully downloaded git? It should be in %localappdata%\Atlassian\Sourcetree\git_local. If it is and you open a console and run %localappdata%\Atlassian\Sourcetree\git_local\cmd\git.exe -version what does that give you back?

Suggest an answer

Log in or Join to answer
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 ...

261 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot