Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
TAGS
AUG Leaders

Atlassian Community Events