X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=cxXnTIVZSnOMkKOf
	qyphKpuZHfpm1aGpwEwnCBk0GGFvMtYN6yhvZzYUh3LGpj6vTvQyOMUZdYK89emQ
	sHNSxAVpav+gorxmTCvk9ndgKqT+0dECx6zxY53rux4+nQLc9VWerha1V3nCvVvw
	FlAE6V6SuQI0rtrWibu/4iSJRkc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=hLL87xvHmnvd1KZXO/z4uR
	EGzKA=; b=rAcA2qHtfjtnkq6QXUHG20yrP0yCpVGDfD+eHm8a8WgYlwctgZnQDv
	X8hR2YqM1Gq4TrwhVu1JyF0UncpPsaXUcfbBndQy6e3Gi+skmNCQW6AbOzrGEdjj
	gQXeMFbIU247pH86XvF2zlXW+2NO0t3lB3m+t93jk0oHbRDR7w9/Y=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=BAYES_00,DATE_IN_PAST_96_XX,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=msgid, NETWORK, H*R:D*cz, H*r:110
X-HELO: mail-wr0-f170.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:sender:date:from:reply-to:message-id:to:subject         :in-reply-to:references:mime-version:content-transfer-encoding;        bh=0HgFbx3HZb8EGVf6IdkcC9akB9xbFIaRwvp+LDiDAcA=;        b=Mpam4ZMP+Trokqp7vMddVgZVQOxkKMI84Pn/CVIAVTequalrIH5QthqNENtOZfBbTV         DRCu88YgBsHBPoox/9OCrnD60VDpqnLNnHnVceNx5ObBqeDLUs/P+mNhDnQho4s7LLc1         Z4y1wHoEqgWLebzvqd2t/GPDPJnDr8EAzSNWPT2Xk2fGIJdKVcvfjT/+jj1WLlyF9pxE         n0EOi62UiCDHMz+kgB3dQaka6tLLElExOHKQfH63rtCfYf1SCNGFhsM7CTsn6RoSkuOC         0LwZf1ldMWGH+UQhPvlkzubB0S3R6NO1Rbc8BBDY51+/kwe/sTt+cWfet2HOWMEsJxNp         ugXg==
X-Gm-Message-State: AJaThX7xMRWR5VDbAVSTF1XqRBBWuCOSJVNt/ImYZ9SO1FYCPDOn1h+G	537jCO8kTaEP3FYyD4aDSdArrD/9Mt8=
X-Google-Smtp-Source: AGs4zMYI8EdwgRdRChTkAcXC8SmBMj18AOfz+n9K5GYXEkVQY6wW3loezlQTW60t3yjqEjniyUUetA==
X-Received: by 10.223.163.11 with SMTP id c11mr17256176wrb.214.1512483246696;        Tue, 05 Dec 2017 06:14:06 -0800 (PST)
Date: Sun, 26 Nov 2017 01:41:57 +0100
From: Dawid Ferenczy <ferenczy@volny.cz>
Reply-To: Dawid Ferenczy <ferenczy@volny.cz>
Message-ID: <1867005492.20171126014157@volny.cz>
To: Adam Dinwoodie <adam@dinwoodie.org>, cygwin@cygwin.com
Subject: Re: Git status delay
In-Reply-To: <20171121102728.GM20681@dinwoodie.org>
References: <092c4159-1f86-a64a-6ae1-c9909ef4ef90@gmail.com> <20171121102728.GM20681@dinwoodie.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Original   message  "Re: Git status delay"  from  "Adam Dinwoodie  
(adam@dinwoodie.org)" sent 21. listopadu 2017, 11:27:28,
msgid:20171121102728.GM20681@dinwoodie.org (3557 bytes):


> Your analysis is spot-on: Git is trying to find the directory that
> contains all the metadata for the current working copy, and traversing
> up the directory structure to do so.  In circumstances I haven't managed
> to characterise (I don't see this problem) it sometimes tries to parse
> //HEAD -- on most POSIX systems, this is equivalent to /HEAD, but on
> Cygwin it refers to the UNC path \\HEAD, which Windows attempts to look
> up on the network.  That network lookup is the cause of the delay you're
> seeing.

> (I believe this is a bug in Git, on the grounds that (a) Git in general
> supports POSIX systems and giving special meaning to paths starting with
> `\\` is allowed, if unusual, POSIX behaviour, and (b) Git specifically
> supports Cygwin, and this is very well documented Cygwin behaviour.)


Hi,

   exactly!  I  can  confirm it. This is a screenshot from SysInternals' Process
   Monitor: https://ferenczy.cz/temp/cygwin-git-hang.png
   
   You  can  see  that  it  hanged  for about 30 seconds trying to open the file
   "\\HEAD\PIPE\wkssvc" which obviously failed with the BAD NETWORK PATH error. 
   On  my  system, it always hangs for the same amount time, it's most likely a 
   timeout.
   
   It  just  suddenly  started to happen (I have a Git status in my prompt so I 
   noticed it when my shell started to behave extremely slowly). I have tried to 
   update both Cygwin and Git and it didn't help.
   
   Also, it's happening even outside of any repository.
   
   I would also say it's more likely a Git's issue than Cygwin's.
 
-- 
S pozdravem,
 Dawid Ferenczy
 Senior web applications developer

 ferenczy@volny.cz
 http://ferenczy.cz
 http://twitter.com/DawidFerenczy

 PGP key ID: 0xA864A330EE1FE92B
___________________________________


--
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

