Skip to content

Commit 1f8a832

Browse files
Making is_remote_branch? actually look over the remote branches.
closes ruby-git#64
1 parent a367bff commit 1f8a832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def is_local_branch?(branch)
167167

168168
# returns +true+ if the branch exists remotely
169169
def is_remote_branch?(branch)
170-
branch_names = self.branches.local.map {|b| b.name}
170+
branch_names = self.branches.remote.map {|b| b.name}
171171
branch_names.include?(branch)
172172
end
173173

0 commit comments

Comments
 (0)