We would have a git plugin - to get the merged status we only use a local repo anyway. 

This function will probably need changing into a lower level function like get_merged_status(repo_name, from_branch, to_branch). And called from a higher level one that takes the hierarchy tree and adds the statuses to it.

I didn't envisage github or bitbucket being involved in this call...