From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107358 invoked by alias); 11 Dec 2017 13:37:53 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 107345 invoked by uid 89); 11 Dec 2017 13:37:52 -0000 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 Received: from mail-lf0-f43.google.com (HELO mail-lf0-f43.google.com) (209.85.215.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Dec 2017 13:37:44 +0000 Received: by mail-lf0-f43.google.com with SMTP id f13so19162052lff.12 for ; Mon, 11 Dec 2017 05:37:44 -0800 (PST) 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) Received: from ferenczy-dell ([2a01:110:8012:1012::258]) by smtp.gmail.com with ESMTPSA id b75sm2749364lfe.47.2017.12.11.05.37.39 for (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Dec 2017 05:37:40 -0800 (PST) Date: Mon, 11 Dec 2017 17:19:00 -0000 From: Dawid Ferenczy Reply-To: Dawid Ferenczy Message-ID: <184959217.20171211143738@volny.cz> To: 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 X-SW-Source: 2017-12/txt/msg00079.txt.bz2 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