-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
installer/portable: also install a redirector for /bin/sh.exe
It was pointed out in git-for-windows/git#208 that SourceTree expects `/bin/sh.exe` to be available. Let's just install the redirector to make SourceTree happy, too. This is a companion patch to fd137f7 (installer/portable: copy redirectors into /bin/{bash,git}.exe, 2015-06-19). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2e0d868
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes it harder for TortoiseGit to find the usr/bin directory.
2e0d868
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should it need to find the
usr\bin
directory if it finds thebin
directory already?2e0d868
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The usr/bin directory needs to be on the path for (libgit2) hooks. (The wrapper automatically puts the usr/bin directory on the path, but libgit2 doesn't use the git.exe wrapper)
2e0d868
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see. But why not simply test for
mingw64\bin\git.exe
, then formingw32\bin\git.exe
, thenbin\git.exe
?2e0d868
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because for normal operations we need to use the wrapper ;) Only for the hooks, which are not executed by git.exe but libgit2 we need to have the path set up as the wrapper does (i.e., usr\bin needs to be on the path for the case people call these files in their hooks, like openssl)...
2e0d868
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... so why not add
bin;usr\bin;mingw64\bin;mingw32\bin
to thePATH
and be done with it? 😺