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 Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

848 views 3 2
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