jacogr / atom-git-control

Not maintained :(
MIT License
227 stars 70 forks source link

Windows: run without git.exe in the path #144

Open stijnsanders opened 8 years ago

stijnsanders commented 8 years ago

Is there a way to replace "git" with the full path to git.exe in any command calls? (e.g. with a configuration setting?)

I have git installed, but don't have the path of git.exe listed in the PATH environment variable, and don't want to. Calling git with the full path works in normal use.

What I now get is an error "Uncaught (in promise) 'git' is not recognized as an internal or external command, operable program or batch file." at git.coffee:62 (version 5.12.0)

julkue commented 8 years ago

@jacogr I have the same issue. I am using ATOM in a portable mode, where Git is also portable available on my USB drive. So I need a setting to define the Git path in git-control!

feffi commented 8 years ago

+1

stijnsanders commented 8 years ago

I had a quick look in the code, it appears the effective git.exe call is made with git-promise, I see it listed as dependency in package.json, can I assume then its this one? Next step is finding out if you can have that one use the full path to git.exe...

stijnsanders commented 8 years ago

well, well, look-ee-here I'll see if I can make some time to prepare a pull-request that adds ´gitExec´ to this and git-control's settings pane.

ihipop commented 7 years ago

any update on this issue? I don't want to add git to my PATH is there any configurable options exists? just like Atom-git-plus