atom-git-control icon indicating copy to clipboard operation
atom-git-control copied to clipboard

Windows: run without git.exe in the path

Open stijnsanders opened this issue 9 years ago • 5 comments

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)

stijnsanders avatar Jan 15 '16 13:01 stijnsanders

@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!

julkue avatar Feb 22 '16 07:02 julkue

+1

feffi avatar Mar 08 '16 07:03 feffi

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 avatar Mar 08 '16 08:03 stijnsanders

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.

stijnsanders avatar Mar 08 '16 08:03 stijnsanders

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

ihipop avatar Oct 27 '16 09:10 ihipop