Skip to content

Commit ea531cd

Browse files
daxgamesMartiUK
authored andcommitted
Fix post-install.bat not running and deleting itself (#2106)
* Fix post-install.bat not running * Changelog * Changelog
1 parent 73c21d1 commit ea531cd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
### Fixes
1212

13+
* Pull Request: [#2106](https://github.com/cmderdev/cmder/pull/2106)
14+
* Portable Git requires running `post-install.bat` which deletes itself when done. This was not happening.
15+
* Resolves [#2105](https://github.com/cmderdev/cmder/issues/2105)
1316
* Pull Request: [#2002](https://github.com/cmderdev/cmder/pull/2002)
1417
* Updated the HG prompt code to use the '-ib' option to 'hg id' so the branch name is always available, regardless of the state of the working copy
1518

vendor/init.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ call "%user_aliases%"
369369
:: Basically we need to execute this post-install.bat because we are
370370
:: manually extracting the archive rather than executing the 7z sfx
371371
if exist "%GIT_INSTALL_ROOT%\post-install.bat" (
372-
%lib_console% verbose_output "Running Git for Windows one time Post Install...."
372+
echo Running Git for Windows one time Post Install....
373373
pushd "%GIT_INSTALL_ROOT%\"
374-
"%GIT_INSTALL_ROOT%\git-bash.exe" --no-needs-console --hide --no-cd --command=post-install.bat
374+
"%GIT_INSTALL_ROOT%\git-cmd.exe" --no-needs-console --no-cd --command=post-install.bat
375375
popd
376376
)
377377

0 commit comments

Comments
 (0)