Re: [PATCH] repack: find -> /usr/bin/find, as for cygwin
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 19, 2011, 18:17 UTC
- Message-ID
- <7vsjujq8kf.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <AANLkTinxyp=PbvzRkyyxXin5aOFm1NP4Be6U2Dv0aD6d@mail.gmail.com>
ryenus ◇ <ryenus@gmail.com> writes:
Show 19 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*)
This looks like a more sensible alternative than forbidding the use of "find", privided if the new pattern is an appropriate one to catch cygwin.
I don't have any Windows boxes, so I cannot verify, but the patch smells correct.