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

How do sourcetree know there are changes on origin?

giammin Mar 03, 2016

How do sourcetree know there are changes on origin and display the number of new commit in the toolbar Pull button

 

 

2 answers

1 accepted

1 vote
Answer accepted
Seth Mar 04, 2016

SourceTree can be (and is by default) configured to issue a "git fetch" command every few minutes.

In the options dialog, see "Check default remotes for updates every __ minutes".

 

1 vote
Johannes Kilian Mar 03, 2016

By polling the connected server .... I'm not quite sure if the numbers can be determined if you use another hosting service as Bitbucket Server (as I don't use any other)

giammin Mar 03, 2016

i'm interested in the git command it uses

Johannes Kilian Mar 03, 2016

I haven't any great expertise here, but If I look at the "atlassian-bitbucket-access.log" log file (within BITBUCKET_HOME), I see the following:

172.16.0.120 | http | i@13J5DP6x17x2603224x0 | - | 2016-03-04 00:17:44,994 
| "GET /scm/myProj/configdata.git/info/refs HTTP/1.1"
| "" "git/1.9.5.msysgit.0" | - | - | - | - | - | - |

This seems to be used to get the state of the remote repository (see: https://git-scm.com/book/be/v2/Git-Internals-Transfer-Protocols - info/refs)

Comparing this data with your local repository, SourceTree might determine the asked information.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,858 views 14 18
Join discussion

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