diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-07-27 09:59:11 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-12-12 06:00:41 +0000 |
commit | e1f42844a0b2a4dcf4c7338c41ef92f1b45393d8 (patch) | |
tree | 3bf03e5e59e9ee00fe5c4dfe92f6b77c52eb5c4e /lib/bundler.rb | |
parent | b8e542b46350cc1e7975bb711082e4cc6fcb7c82 (diff) |
[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.rb | 2 |
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 |