Re: quick bare clones taking longer?
- From
Johannes Sixt <j.sixt@eudaptics.com>
- Date
- May 10, 2007, 08:56 UTC
- Message-ID
- <4642DE52.F9F0A5B2@eudaptics.com>
- In-Reply-To
- <vpqtzul3xzm.fsf@bauges.imag.fr>
Matthieu Moy wrote:
Show 16 quoted lines
>
> Junio C Hamano <junkio@cox.net> 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