Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix GitBuilder for Ruby 1.9, now that String#any? is gone

  • Loading branch information...
commit 68fca5ab289a24e186fa6f72bb9c6d31725cc3ac 1 parent a88f883
@indirect indirect authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/support/builders.rb
View
2  spec/support/builders.rb
@@ -407,7 +407,7 @@ def _build(options)
if branch = options[:branch]
raise "You can't specify `master` as the branch" if branch == "master"
- unless `git branch | grep #{branch}`.any?
+ if `git branch | grep #{branch}`.empty?
silently("git branch #{branch}")
end
Please sign in to comment.
Something went wrong with that request. Please try again.