aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-27 09:59:11 +0900
committergit <svn-admin@ruby-lang.org>2022-12-12 06:00:41 +0000
commite1f42844a0b2a4dcf4c7338c41ef92f1b45393d8 (patch)
tree3bf03e5e59e9ee00fe5c4dfe92f6b77c52eb5c4e /lib/bundler.rb
parentb8e542b46350cc1e7975bb711082e4cc6fcb7c82 (diff)
downloadruby-e1f42844a0b2a4dcf4c7338c41ef92f1b45393d8.tar.gz
[rubygems/rubygems] Prefer RbConfig::CONFIG['EXEEXT'] over hardcorded '.exe'
https://github.com/rubygems/rubygems/commit/bc84b2d262
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r--lib/bundler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index b20179934a..658dda3871 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -550,7 +550,7 @@ EOF
def git_present?
return @git_present if defined?(@git_present)
- @git_present = Bundler.which("git") || Bundler.which("git.exe")
+ @git_present = Bundler.which("git#{RbConfig::CONFIG["EXEEXT"]}")
end
def feature_flag