summaryrefslogtreecommitdiff
path: root/lib/bundler/source/git
diff options
context:
space:
mode:
authorVictor Koronen <koronen@kth.se>2015-08-13 20:09:53 +0200
committerVictor Koronen <koronen@kth.se>2015-08-13 20:09:53 +0200
commit122518fb89d97628589782e0fdac72f716496d18 (patch)
tree8e3fa08278c610e03629fa47c8a00f6df19c8685 /lib/bundler/source/git
parent6fdbc5d2ac7d794df8044dc7e3c1ce99922e3ff1 (diff)
downloadbundler-122518fb89d97628589782e0fdac72f716496d18.tar.gz
Fix Style/RegexpLiteral
Diffstat (limited to 'lib/bundler/source/git')
-rw-r--r--lib/bundler/source/git/git_proxy.rb2
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."