delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/12/05/09:14:16

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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-wm0-f41.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=KIXAYMvgZydhcZ2ko2xe0utyLN2WOEBg/S/L3iyXPZJVzqGT36DMlf3FWiN69s3Klg 8eic+PRMX4bt8/YcKkUc+hw+KV6XWOmldReUX0fhZfgb2FHqKHyZ6WNrNGijUS68dyZz LQe01wZOJLGELkrpP8dwp+p8O7VOcHRENGzWMQ0GvCrM+5h30zpR+FTmyehHfo7m0bfN +N5ibKmxpUTZmshXBFDCOnDrB/a9k2ZBdaF/v1+g2icQrsh4mrNZVcETzpK3wqOUkh4x Px5aVex9lz5EWCfd6ki1wyWENdoa+1vbVPWK7TkNNLzyAtWNEZWBisjyFsBFma2m5AoO 9bXw==
X-Gm-Message-State: AKGB3mITveH8IrnlASByYlncl0L0ZCtu+THh27rKZ1zQEiS1anN98dzl 51lmkwT3DnmFmJj6TNmEq6j8Fp6lKJY=
X-Google-Smtp-Source: AGs4zMbUvIjnl73MeLhs4UxdLZVzimfcIfk8JLnZzJQ6MBOfljsoDrLS8KujyUqVn7XmlXvgraOYjg==
X-Received: by 10.28.27.206 with SMTP id b197mr10653659wmb.96.1512483234219; Tue, 05 Dec 2017 06:13:54 -0800 (PST)
Date: Sun, 26 Nov 2017 01:41:57 +0100
From: Dawid Ferenczy <ferenczy AT volny DOT cz>
Reply-To: Dawid Ferenczy <ferenczy AT volny DOT cz>
Message-ID: <1867005492.20171126014157@volny.cz>
To: Adam Dinwoodie <adam AT dinwoodie DOT org>, cygwin AT cygwin DOT com
Subject: Re: Git status delay
In-Reply-To: <20171121102728.GM20681@dinwoodie.org>
References: <092c4159-1f86-a64a-6ae1-c9909ef4ef90 AT gmail DOT com> <20171121102728 DOT GM20681 AT dinwoodie DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes

Original   message  "Re: Git status delay"  from  "Adam Dinwoodie  
(adam AT dinwoodie DOT org)" sent 21. listopadu 2017, 11:27:28,
msgid:20171121102728 DOT GM20681 AT dinwoodie DOT 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 AT volny DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019