diff options
Diffstat (limited to 'lib/bundler/source/git/git_proxy.rb')
-rw-r--r-- | lib/bundler/source/git/git_proxy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb index 484a031835..8b6d420884 100644 --- a/lib/bundler/source/git/git_proxy.rb +++ b/lib/bundler/source/git/git_proxy.rb @@ -87,7 +87,7 @@ module Bundler def contains?(commit) allowed_with_path do result, status = git_null("branch", "--contains", commit, dir: path) - status.success? && result =~ /^\* (.*)$/ + status.success? && result.match?(/^\* (.*)$/) end end |