Method: Git::Base#is_remote_branch?

Defined in:
lib/git/base.rb

#is_remote_branch?(branch) ⇒ Boolean

returns true if the branch exists remotely

Returns:

  • (Boolean)


169
170
171
172
# File 'lib/git/base.rb', line 169

def is_remote_branch?(branch)
  branch_names = self.branches.remote.map {|b| b.name}
  branch_names.include?(branch)
end