Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

"you do not have git installed" on Windows when git not in predefined location #766

Open
mcalmus opened this issue Oct 14, 2016 · 0 comments

Comments

@mcalmus
Copy link

mcalmus commented Oct 14, 2016

rhc is looking for git.exe in only a handful of locations ("Program Files", "Program Files (x86)", "Progra~1" and drive root) of mapped drives. If git is installed in some other location, even when that location is on the PATH, rhc gives the error "You do not have git installed". In addition to checking these predefined locations rhc should check the directories in the PATH environment variable.

Inserting the following into helpers.rb worked for me:

begin
  ENV['PATH'].split(";").each do |item|
    base_path << item
  end
end
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant