Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Avoid quoting environment variable values.
Browse files Browse the repository at this point in the history
The HOME environment variable needs to be unquoted as when it is used
the quotes are added by the caller (eg: "%HOME%\NUL") and this can expand
to double quoted mayhem (eg: ""c:\documents and settings\user"\NUL") which
causes trouble in later scripts.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
  • Loading branch information
patthoyts committed Sep 13, 2010
1 parent daafc61 commit 83e164c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-cmd.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
@for /F "delims=" %%I in ("%~dp0") do @set git_install_root=%%~fI
@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%PATH%

@if not exist "%HOME%" @set HOME="%HOMEDRIVE%%HOMEPATH%"
@if not exist "%HOME%" @set HOME="%USERPROFILE%"
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%

@set PLINK_PROTOCOL=ssh

Expand Down

0 comments on commit 83e164c

Please sign in to comment.