Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENHANCE: Only add git to path if not exist #586

Closed
kermage opened this issue Aug 9, 2015 · 2 comments
Closed

ENHANCE: Only add git to path if not exist #586

kermage opened this issue Aug 9, 2015 · 2 comments

Comments

@kermage
Copy link

kermage commented Aug 9, 2015

In %CMDER_ROOT%\vendor\init.bat:39

:: Add git to the path
@if defined GIT_INSTALL_ROOT (
    :: Check for the existence of %GIT_INSTALL_ROOT% in %PATH%
    :: * if "!PATH:%GIT_INSTALL_ROOT%=!" equ "%PATH%" (
    echo "%PATH%" | findstr /C:"%GIT_INSTALL_ROOT%" >NUL || (
        :: Does not exist; Add now
        set "PATH=%GIT_INSTALL_ROOT%\bin;%GIT_INSTALL_ROOT%\share\vim\vim74;%PATH%"
    )
    :: define SVN_SSH so we can use git svn with ssh svn repositories
    if not defined SVN_SSH set "SVN_SSH=%GIT_INSTALL_ROOT:\=\\%\\bin\\ssh.exe"
)

Updated: New checker.

* Old one only works with EnableDelayedExpansion globally enabled (set in the registry).

@Stanzilla
Copy link
Member

29d1378 ?

@kermage
Copy link
Author

kermage commented Aug 11, 2015

Ohh yes, sorry for the noobish move. Have not checked that development branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants