Re: commit takes 8 secs; but instant when offline - can I fix this?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mon, 3 Nov 2008, Brendan Macmillan wrote:
>
> Many thanks for the explanation, and it's now instant.
> 
> To ~/.gitconfig, I added:
> 
> [user]
>   email = myemail@xxxxxxxxxxx

I'd like to point out that in addition to making git not try to figure out 
your hostname, you may well want to try to fix your setup so that it 
doesn't take that long in the first place. 

In fact, you might use "git commit" (or "git var -l" which probably shows 
the same 8-second thing more easily without needing anything else) as a 
way to debug what it is that takes too long.

Because even though adding your email to yout .gitconfig file is the right 
solution _anyway_ (because the git guess is rather more flaky than you 
just telling it what host to use), I bet there are other programs that 
will have the same 8-second delay, and you are better off trying to just 
fix your DNS problem.

			Linus
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux