Re: [PATCH] repack: find -> /usr/bin/find, as for cygwin
- From
ryenus ◇ <ryenus@gmail.com>
- Date
- Mar 19, 2011, 16:43 UTC
- Message-ID
- <AANLkTi=EQhtOM3dR8V5dxP=AfNxWuSFoTbvzL36q3rXL@mail.gmail.com>
- In-Reply-To
- <AANLkTinxyp=PbvzRkyyxXin5aOFm1NP4Be6U2Dv0aD6d@mail.gmail.com>
OK, I've been away for a while and didn't notice latest replies :-) do you mean find is not used elsewhere in git?
Anyway, looks like checking for both MinGW and Cygwin still applies.
Thanks
On Sun, Mar 20, 2011 at 00:32, ryenus ◇ <ryenus@gmail.com> wrote:
Show 25 quoted lines
> Thank you, Duy, you're almost right, I just checked git-sh-setup.sh,
> in the bottom, sort and find are defined as functions like what you
> pointed out, but only for MinGW, therefore a better fix is to check
> for cygwin as well:
>
> ---
> git-sh-setup.sh | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/git-sh-setup.sh b/git-sh-setup.sh
> index aa16b83..5c52ae4 100644
> --- a/git-sh-setup.sh
> +++ b/git-sh-setup.sh
> @@ -227,7 +227,7 @@ fi
>
> # Fix some commands on Windows
> case $(uname -s) in
> -*MINGW*)
> +*MINGW*|*CYGWIN*)
> # Windows has its own (incompatible) sort and find
> sort () {
> /usr/bin/sort "$@"
> --
> 1.7.4
>