Branches from rugged repository method

Migrate to Rugged::Repository branches method http://rubydoc.info/gems/rugged/Rugged/Repository#branches-instance_method