diff options
author | Victor Koronen <koronen@kth.se> | 2015-08-13 20:09:53 +0200 |
---|---|---|
committer | Victor Koronen <koronen@kth.se> | 2015-08-13 20:09:53 +0200 |
commit | 122518fb89d97628589782e0fdac72f716496d18 (patch) | |
tree | 8e3fa08278c610e03629fa47c8a00f6df19c8685 /lib/bundler/source/git | |
parent | 6fdbc5d2ac7d794df8044dc7e3c1ce99922e3ff1 (diff) | |
download | bundler-122518fb89d97628589782e0fdac72f716496d18.tar.gz |
Fix Style/RegexpLiteral
Diffstat (limited to 'lib/bundler/source/git')
-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 b3f8816c3e..f49ab4b046 100644 --- a/lib/bundler/source/git/git_proxy.rb +++ b/lib/bundler/source/git/git_proxy.rb @@ -86,7 +86,7 @@ module Bundler git_retry %|clone --no-checkout --quiet "#{path}" "#{destination}"| File.chmod(((File.stat(destination).mode | 0777) & ~File.umask), destination) rescue Errno::EEXIST => e - file_path = e.message[/.*?(\/.*)/, 1] + file_path = e.message[%r{.*?(/.*)}, 1] raise GitError, "Bundler could not install a gem because it needs to " \ "create a directory, but a file exists - #{file_path}. Please delete " \ "this file and try again." |