gitlabhq/gitlab_git — pull request #23 by edvakf (2014-02-08 19:49:12+00:00)
Title: Added a spec to #branches and use #branch? of Rugged

It seems #heads is going to be removed and replaced by #branches. So I've sort of the spec of #heads to #branches.

I've also made it use Rugged::Git::Repository#branch?