Subject: Re: quick bare clones taking longer?

From: Johannes Sixt <[email-masked]>
Date: Thu, 10 May 2007 10:56:50 +0200

Matthieu Moy wrote:
> 
> Junio C Hamano <[email-masked]> writes:
> 
> >  get_repo_base() {
> > -     (cd "$1" && (cd .git ; pwd)) 2> /dev/null
> > +     (
> > +             cd "`/bin/pwd`" &&
> > +             cd "$1" &&
> > +             (
> > +                     cd .git
> > +                     pwd
> > +             )
> > +     ) 2>/dev/null
> >  }
> 
> Will this work on windows?

Yes. As does the alternative that uses cd -P. MinGW uses bash (3.1
here).

-- Hannes