Don't use class variables when accessing branch data

I'm working on Symfony 2.2.0-DEV and didn't get the GitDebugBundle working until I made the changes of this commit.