Actions
Bug #13445
closedMinGW, GIT, revision.h, vcs.rb
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-04-17 trunk 58383) [x64-mingw32]
Description
When generating a MinGW build from a local repo, the revision.h file does not exist, and is create by tool/file2lastrev.rb
which requires tool/vcs.rb
.
On windows/MinGW, one often needs to specify a git.exe
location, which can be done using the --with-git=
configure option, created via win32/configure.bat
. This setting is not picked up via vcs.rb
.
See GitHub PR #1557
Adds the following code to the top of vcs.rb
# If specified in configure options, adds git location to PATH for MinGW builds
if (t = ENV['GIT']) && File.exist?(t)
ENV['PATH'] = "#{File.dirname(t)}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
end
Actions
Like0
Like0Like0Like0