delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/11/18/16:13:56

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:from:subject:to:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=cpt
DM4qf9hQ4NYKa2zowMlqCTSQLgWTTME3+vIyNMK9pFBHRqkM6ciux9hBQXCABjeO
EGTLFiFVKAw+88xnmAzegtu3VMgPuaen8Zq/hwfU9EiHnpZ9yMRaKZDUGb8Vb2rx
0votOk7b73YoQgymc7PZOQejnuI6pPM5mOPYDqoY=
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:from:subject:to:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=rdg6wg/zI
ULlsoBxbGUXc5/80tA=; b=wjxc4ruGypQvoyqNTGkDnKn2+AbcNQQPbzzrx102o
PRaxav9HXSb2hamkfXgHTUMwl402ES2aeAblYwIUNlWF9Q6c9aZinNZfFg1/hdYI
TsgUE5nGmF1BDfOnj21NmT4AJLoVbgka1Uwl3im8GwHilcXSWB0AuYJh43vGZR4m
Ig=
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.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=hangs, H*M:6ae1, H*MI:6ae1, H*u:6.1
X-HELO: mail-wm0-f53.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=x/ZZi2zSfjlN/FXSpXhI/pE0i8xTDLbvlvyOrxjFOF0=; b=sMBsxRsXt04s5keWg35AAVmHST4MWnQIbqgDJU3rm2FTndZXG0ho9Iw6PC04M7qpuj Dn8TsGSWVkKg5IDvMkGTbfXQUeIOJ+bKTHm/xKUNXNicbG4/Li0RFCytVtDAzztKJpfH goUfadBLqIOE/xlDjVvoQroPKfvPgX4KDAHIHQQQPpRv+KAzunvdn9J2LVRfMo3lecj0 DHLuj0hhPTaOoydThECaPfbD57nRh3vzEFRToVH55ecmXUNWCWZnBlnOgqz7QzNn4mdS loCi/xpd4I/u0k8CTFAkR8NSLM0GClAT41ZRGkjUemU7JQ4WLor73TGvxzqW1DpXXZVP RIhQ==
X-Gm-Message-State: AJaThX7iKdb/frqc0U/IL1f42We6T1SmdoMarW3vEJGwLpJ6vS5xQlA7 VKbh03Rxg/yoAkDOCJbO9Fi9PZb6
X-Google-Smtp-Source: AGs4zMao7j+4bU07mU7d0mfnLdp6XyFwNn2j7tWBx7A7lGTDEKpugq3yNS0R9C10M4vN38RW5uDPCQ==
X-Received: by 10.28.69.210 with SMTP id l79mr7070697wmi.117.1511039621264; Sat, 18 Nov 2017 13:13:41 -0800 (PST)
From: Richard H Lee <ricardohenrylee AT gmail DOT com>
Subject: Git status delay
To: cygwin AT cygwin DOT com
Message-ID: <092c4159-1f86-a64a-6ae1-c9909ef4ef90@gmail.com>
Date: Sat, 18 Nov 2017 21:13:29 +0000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
X-IsSubscribed: yes

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

- Raw text -


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