It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Broken Windows SourceTree 2.1.2.5 with Embedded Git 2.12.2 + git-lfs v2.0.2

SourceTree told me there was a newer version available, so I updated t o 2.1.2.5

Then I saw under Tools -> Options -> Git that there was a newer Embedded Git available, so I updated to 2.12.2 with git-lfs v.2.0.2

Now SourceTree is broken and I can't clone a remote repository.

This is the error I get:

git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=manager-st clone --branch master --recursive http://User@server:7990/scm/xxx/yyy.git D:\zzz\yyy
Cloning into 'D:\zzz\yyy'...
warning: templates not found C:\Users\User\AppData\Local\Atlassian\SourceTree\git_local\share\git-core\templates

fatal: TypeInitializationException encountered.
The type initializer for 'Microsoft.Alm.Cli.Program' threw an exception.

The fatal error appears after a few seconds.

In my local repository, there are a few files, i.e.  config and HEAD, plus sub-folders called objects and refs

In the objects\pack folder is a file tmp_pack_yy2paa

I have several git.exe processes still active, as well as one git-remote-http.exe processes in Task Manager.

Any ideas ???

 

 

 

8 comments

I also get this error " The type initializer for 'Microsoft.Alm.Cli.Program' threw an exception.", although it doesn't seem to affect sourcetree's behavior for me.

minnsey Atlassian Team Jul 03, 2017

Hi, judging by the namespace that is the Git Credentials Manager for Windows, or GCM, that is crashing.

From the Terminal you can try running

>git credential-manager version

This will tell the version of the GCM that is being run.

Additionally if you set the environment variable GCM_TRACE=true and try running the clone you should see additional loggng from the GCM.

It might be best to raise an issue at https://jira.atlassian.com as its easier to collate the information there.

git credential-manager version replies with "1.9.1"

So this is related to sourcetree?, my eventlog is flooded with these messages.

What does it help that I also have version 1.9.1 of credential manager? (And it's not possible to update the embedded git, since it's always crashing.

Should we upgrade to v1.12.0 from github?, if it's compatible with sourcetree?

Ok, this is crap.

I installed the newest Credential manager, 1.12, and still had the errors in my eventlog, then I tried "git pull" on the commandline, and credential manager asked me for the password, just of sudden... 

After entering the correct credential for the repository, everything seemed fine, no more errors in eventlog, so the unneeded flodding stopped.

But, now Sourcetree reports:

"

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=manager-st fetch origin
fatal: TypeInitializationException encountered.
The type initializer for 'Microsoft.Alm.Cli.Program' threw an exception.


git -c diff.mnemonicprefix=false -c core.quotepath=false -c lfs.customtransfer.bitbucket-media-api.path=git-lfs-bitbucket-media-api -c credential.helper=manager-st pull origin master
fatal: TypeInitializationException encountered.
The type initializer for 'Microsoft.Alm.Cli.Program' threw an exception.

"

I guess it's better to start learning commandline or other tools, sourcetree is giving too much problems.

Comment

Log in or Sign up to comment
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

1,715 views 0 10
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you