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

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

Pull request hangs or first request fatally fails (TaskCanceledException encountered)


I just installed Win8.1 64-bit (installed fresh about 10 days ago) and a fresh copy of SourceTree today.  During the installation, I went ahead and cloned a copy of a git repository stored on Atlassian Bitbucket.  Everything looks good and then I go to do a pull request to make sure everything is working and I notice it takes several seconds longer than normal.  I get an error in the Full Output:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
fatal: TaskCanceledException encountered.
   A task was canceled.

But it moves on to the next task

git -c diff.mnemonicprefix=false -c core.quotepath=false pull --log origin master
* branch master -> FETCH_HEAD

Already up-to-date.
Completed successfully.


And finishes.

But I want to know why it hangs with the "fetch origin" request?

I had a previous install where it just kept hanging.  No explanation or tips.   I also got an error on the previous install about "warning: templates not found" .


edit:  now I tried a push request (staged a test .txt file) and it took 3 minutes for it to get past this request"


git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\Users\[winuser]\AppData\Local\Temp\

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master

Why is it taking so long?



Before it took seconds.

1 answer

0 votes
minnsey Atlassian Team Dec 15, 2017


It seems likely it is an error occurring in the Git Credential Manager. The time is being taken during the authentication to and fro with Bitbucket.

What version of Git and GCM are you running?

You can see both by opening the Terminal from the repo tab in Sourcetree and running

>git version


>git credential-manager version

As requested, I opened SourceTree and clicked "Terminal" and the following appeared:

mkdir: cannot change permissions of '/dev/shm': Permission denied
mkdir: cannot change permissions of '/dev/mqueue': Permission denied
'C:\Windows\system32\drivers\etc\hosts' -> '/etc/hosts'
'C:\Windows\system32\drivers\etc\protocol' -> '/etc/protocols'
'C:\Windows\system32\drivers\etc\services' -> '/etc/services'
'C:\Windows\system32\drivers\etc\networks' -> '/etc/networks'

[winuser]@[localhost] MINGW32 /c/[filepath]/git (master)

$ git version
git version

$ git credential-manager version
Git Credential Manager for Windows version 1.12.0


I only use and SourceTree on my local computer.  So whatever SourceTree installs by default, that is what I am using. 

Do I need another program?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 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...

5,825 views 4 13
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