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.

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
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