File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ Then run the `setup` and all should work fine.
19
19
20
20
Release with new features and bugfixes:
21
21
22
+ * https://github.com/devonfw/IDEasy/issues/764[#764]: Fix IDEasy in CMD
22
23
* https://github.com/devonfw/IDEasy/issues/774[#774]: HTTP proxy support not working properly
23
24
* https://github.com/devonfw/IDEasy/issues/792[#792]: Honor new variable IDE_OPTIONS in ide command wrapper
24
25
* https://github.com/devonfw/IDEasy/issues/589[#589]: Fix NLS Bundles for Linux and MacOS
Original file line number Diff line number Diff line change @@ -5,6 +5,20 @@ Set _fBGreen=[92m
5
5
Set _fBRed = [91m
6
6
Set _RESET = [0m
7
7
8
+ rem Add Git PATH entries for CMD - https://github.com/devonfw/IDEasy/issues/764
9
+ for %%H in ( HKEY_LOCAL_MACHINE HKEY_CURRENT_USER ) do for /F " usebackq tokens=2*" %%O in (`call " %SystemRoot% " \system32\reg.exe query " %%H \Software\GitForWindows" /v " InstallPath" 2^ > nul ^ | " %SystemRoot% \system32\findstr.exe" REG_SZ`) do set GIT_HOME = %%P
10
+
11
+ set " GIT_BIN = %GIT_HOME% \usr\bin"
12
+ set " GIT_CORE = %GIT_HOME% \mingw64\libexec\git-core"
13
+
14
+ if exist " %GIT_BIN% " (
15
+ echo " %PATH% " | find /i " %GIT_BIN% " > nul || set " PATH = %PATH% ;%GIT_BIN% "
16
+ )
17
+
18
+ if exist " %GIT_CORE% " (
19
+ echo " %PATH% " | find /i " %GIT_CORE% " > nul || set " PATH = %PATH% ;%GIT_CORE% "
20
+ )
21
+
8
22
if not " %1 %" == " " (
9
23
ideasy %IDE_OPTIONS% %*
10
24
if not %ERRORLEVEL% == 0 (
@@ -17,6 +31,7 @@ REM https://stackoverflow.com/questions/61888625/what-is-f-in-the-for-loop-comma
17
31
for /f " tokens=*" %%i in ('ideasy %IDE_OPTIONS% env') do (
18
32
call set %%i
19
33
)
34
+
20
35
if not %ERRORLEVEL% == 0 (
21
36
echo IDE environment variables have been set for %IDE_HOME% in workspace %WORKSPACE%
22
37
)
You can’t perform that action at this time.
0 commit comments