public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Git status delay
@ 2017-11-18 21:13 Richard H Lee
  2017-11-20 10:04 ` Richard H Lee
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Richard H Lee @ 2017-11-18 21:13 UTC (permalink / raw)
  To: cygwin

I have an issue with git where it hangs for 10 to 20 seconds on several 
commands, including "git status". For me this is reproducible on a fresh 
install of Cygwin x64 in Windows 7.

I get the feeling I am doing something wrong on my end as "git status" 
is a very commonly used command, yet I see no mentions of this on the 
Cygwin mailing list.

Using gdb I can see git hang in the function validate_headref on an 
lstat call. validate_headref pretty much does what it says and validates 
the HEAD reference file. validate_headref is called multiple times for 
different candidate paths for the HEAD reference file, e.g. ".git/HEAD" 
etc. For some reason the path "//HEAD" is checked and this is causing a 
delay. Paths starting with "//" are treated in Cygwin as CIFS paths and 
the delay comes from the timeout when Windows tries to resolve the 
hostname "HEAD" to a server.

Subsequent executions of "git status" return immediately as I guess the 
resolution of "HEAD" as a hostname is cached.

I don't recall having this problem previously.

Does anyone else experience this issue?


Richard

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-12-12 16:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-18 21:13 Git status delay Richard H Lee
2017-11-20 10:04 ` Richard H Lee
2017-11-20 14:33   ` cyg Simple
2017-11-20 17:05 ` Andrey Repin
2017-11-21 10:27 ` Adam Dinwoodie
2017-12-05 14:14   ` Dawid Ferenczy
2017-12-05 17:00     ` Dawid Ferenczy
2017-12-11 23:36     ` Richard H Lee
2017-12-12 16:41       ` cyg Simple
2017-12-11 17:19   ` Dawid Ferenczy
2017-12-11 21:38     ` Adam Dinwoodie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).