Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Johannes Schindelin 0ecc6139cc Mark scripts as executable
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2015-09-28 22:48:44 +02:00
Johannes Schindelin 92d6424ff2 post-install.bat: give 03-mtab a chance to write to the correct path
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>
2015-09-18 14:09:52 +00:00
Johannes Schindelin f1962c881a installer/portable: avoid running ~/.profile during installation
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>
2015-09-10 16:07:58 +02:00
Johannes Schindelin 7bc16f5d3c portable/installer: work around 32-bit issue with Windows 10
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>
2015-09-10 16:07:57 +02:00
Johannes Schindelin cc2c461a01 WIP: installer/portable: consolidate the post-install actions
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>
2015-09-10 15:35:52 +02:00