Hi Dan,
On Mon, 2 Sep 2019, Dan Pristupov wrote:
> Sorry for contacting you by email, but I couldn't find a better way. Please point me if I should ask somewhere else.
In our
https://github.com/git-for-windows/git/blob/master/README.md, we
mention our Google Group, among other things.
> I'm a developer of a git client for Windows (
https://fork.dev) and my application contains the portable version of git.
>
> The README.portable file says:
> > if you decide to unpack the archive using 7-Zip manually, you must run the `post-install.bat` script. Git will not run correctly otherwise.
>
> This note was introduced in the next commit (
https://github.com/git-for-windows/build-extra/commit/a0d190897de09b5aed4fdd74e91b7bdd0e1362b6) with the following commit description:
>
> > It is now known that there definitely will be problems so the readme needs updating.
>
> However I could not find any details on what problems will appear.
>
> Is there any description of what exactly is going on in post-install.bat and why we **must** run it?
You can read the script directly, no need to guess:
https://github.com/git-for-windows/build-extra/blob/master/post-install.bat
Essentially, it gives MSYS2's post-install scripts a go:
https://github.com/git-for-windows/git-sdk-64/tree/master/etc/post-install
Most importantly, this creates the directories `/dev/mqueue/` and
`/dev/shm/`, and the symbolic links `/dev/fd`, `/dev/stdin`,
`/dev/stdout` and `/dev/stderr`, as required by some MSYS2 programs and
Unix shell scripts.
Today, I merged a PR that tries to create at least the directories
pre-emptively in the portable Git (I did not find any way to store the
system bit in 7-Zip, required by Cygwin's emulation of symbolic links,
if it is not set the MSYS2 runtime will think it is a plain file). You
might want to give the latest snapshot a try:
https://wingit.blob.core.windows.net/files/index.html
Ciao,
Johannes