in lib/rugged_adapter/git_layer_rugged.rb [285:289]
def push(remote, branches = nil, options = {})
branches = [branches].flatten.map {|branch| "refs/heads/#{branch}" unless branch =~ /^refs\/heads\//}
@repo.push(remote, branches, **options)
end