Re: quick bare clones taking longer?
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 10, 2007, 00:27 UTC
- Message-ID
- <7v7irhr08y.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <7vd519r10c.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 25 quoted lines
> Junio C Hamano <junkio@cox.net> writes: > >> David Miller <davem@davemloft.net> writes: >> >>> From: Junio C Hamano <junkio@cox.net> >>> Date: Wed, 09 May 2007 15:59:23 -0700 >>> >>>> The above sequence is called before we create the new directory >>>> and chdir to it. Maybe pwd has funny behaviour (e.g. $PWD) and >>>> we need to explicitly say /bin/pwd or somesuch... >>> >>> Indeed: >>> >>> [davem@hera ~]$ pwd >>> /home/davem >>> [davem@hera ~]$ cd git >>> [davem@hera git]$ pwd >>> /home/davem/git >>> [davem@hera git]$ /bin/pwd >>> /home/ftp/pub/scm/linux/kernel/git/davem >>> [davem@hera git]$ >> >> Thanks. > > This would fix it, but I find this kind of ugly.
Side note. Earlier you said:
master.kernel.org just upgraded to git-1.5.1.4 and I notice that doing something like this:
git clone --bare -n -l -s ../torvalds/linux-2.6.git test-2.6.git
is no longer an instantaneous operation, it seems to be doing a lot of stuff now:
But I do not see any difference between v1.5.1.3 and v1.5.1.4 in this area. In fact, that get_repo_base() shell function has not changed since v0.99.