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=xkvVN74bTlqUXbW3 BafeDbdoTxg0fZRZS1lBOfA78l8E/lnxM9atAnrYXn8EE/SgWrcuO02Y+6y5uhU2 WA08oxgaGVIpK1P2a9IlJ/Kzr8wdp92TbTkjfK9uiCU1oCX+Bq9bMF3/Vx46KRDX hXoeMt9OvHI/PyirymKYqQP9iDY= 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=TLcIr05ZFinnDVG63pYzl+vLZEfOJQev0U+dE3uG8aMjftMX9aJYul +3njRQgCuAsZNRIybDKJSEg3GThlIkcDLhSt1cXrPSfScEE8fQ7mCZVmXuDP8ar7 pUyxO+ZZmQkcuIw+zLBtCvgyvZ8yZeKwi6IgAlGY3cIfvi8VKYw7w= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-0.5 required=5.0 tests=BAYES_05,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=NETWORK, dawid, Dawid, UD:cz X-HELO: mail-lf0-f43.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=uaFK0XINf83yHRH0P48IfebuZ13HerOIxaI3+AC+g2gYEd32Xd1FS5eqjdHVH15oJl QLfmmGX+FI1t08zripD6hLmsyQ03FxCKv/PbvKDOzeZ/j48tGv6Rv3BndfXu8EFh4c9U MVbDrzDRUYIdRcY3H2LRhP3R3PoPRjiZn0n2ghmo760AZ2SbDUFy0kYb6qTDeFzLvydw NFUdDR8/8NZHgEuZg85bX3uu65LN1VBAAsnsUschpBAauGbCtKR6JPjgzemjPojDhwvO Ug7+bp518FFE65Glhnr+le57hIPebGyBT36K82ETe2loT6sJ+hvlfKg+cFM+HXvAFEE+ otxQ== X-Gm-Message-State: AKGB3mKsiW7YgnSRGLAtjpywZ66f0Sn+zkPP4Sev2EMqg+ghGMr+IBcp eQkAC+CKpBtWjvL5XH16URn2v5Aoi4k= X-Google-Smtp-Source: ACJfBouw2tYEvOghhhrRNJpsCCjYoQ+C1c76rBtR4qfioZwFqNv9oumcXlC3Nrstf1jkzMhDGGzHIw== X-Received: by 10.25.147.67 with SMTP id v64mr162575lfd.99.1512999461895; Mon, 11 Dec 2017 05:37:41 -0800 (PST) Date: Mon, 11 Dec 2017 14:37:38 +0100 From: Dawid Ferenczy Reply-To: Dawid Ferenczy Message-ID: <184959217.20171211143738@volny.cz> To: 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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