Since we do not run the post-install scripts in a full login shell
anymore, `/etc/profile` has no chance of defining the `SYSCONFDIR`
before `03-tab.post` wants to use it.
So let's just hard-code it in `post-install.bat`.
This fixes https://github.com/git-for-windows/git/issues/405
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Some enterprisey users put commands into their ~/.profile and/or
~/.bashrc that require interactions with the user. Executing them as part
of the installation results in a freeze.
So let's just not try to be smart and let Bash's `--login` mode execute
the post-install scripts; Instead, execute them explicitly, taking pains
*not* to read ~/.profile nor ~/.bashrc.
This fixes https://github.com/git-for-windows/git/issues/351
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
At least on one machine this developer has access to, the default base
address of the 32-bit `msys-2.0.dll` is no good on Windows 10, so we need
to adjust it.
It would be best, of course, if the Batch script could run any program to
guess the best base address, or whether it needs to be adjusted to begin
with, but so far none was identified.
Therefore, let's just stay with the hard-coded base address adjustment
when running in 32-bit mode on Windows 10, until a brilliant idea comes
along to make it better.
This fixes https://github.com/git-for-windows/git/issues/361
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In both portable Git and the installer, we need to ensure that an initial
set of actions are performed, such as
- running the post-install Bash scripts
- adjusting the DLL address range ("rebasing") in 32-bit mode
Rather than having redundant commands, let the portable and the
non-portable version share a single Windows Batch file.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>