From: Linus Torvalds <torvalds@linux-foundation.org>
To: Brendan Macmillan <melbourne.research@gmail.com>
Cc: Thomas Rast <trast@student.ethz.ch>, git@vger.kernel.org
Subject: Re: commit takes 8 secs; but instant when offline - can I fix this?
Date: Sun, 2 Nov 2008 11:18:34 -0800 (PST) [thread overview]
Message-ID: <alpine.LFD.2.00.0811021115030.3483@nehalem.linux-foundation.org> (raw)
In-Reply-To: <7d856ea50811020834n3a252ae2r21d36b24c10eebbf@mail.gmail.com>
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@address.com
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
prev parent reply other threads:[~2008-11-02 19:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-02 14:08 commit takes 8 secs; but instant when offline - can I fix this? 13ren
2008-11-02 14:13 ` Thomas Rast
2008-11-02 16:34 ` Brendan Macmillan
2008-11-02 19:18 ` Linus Torvalds [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.00.0811021115030.3483@nehalem.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=git@vger.kernel.org \
--cc=melbourne.research@gmail.com \
--cc=trast@student.ethz.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox