From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#53831: 29.0.50; vc-git-registered hangs when examining files in .git directory for submodule Date: Mon, 21 Feb 2022 03:37:30 +0200 Message-ID: <3091c5d9-7eb7-722e-9912-f70db60728b2@yandex.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9110"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 To: Robert Irelan , 53831@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 21 02:38:24 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nLxei-0002GR-R8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Feb 2022 02:38:24 +0100 Original-Received: from localhost ([::1]:54992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLxeh-000560-By for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 20:38:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLxeP-00055r-6l for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 20:38:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40390) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLxeM-0002PK-H2 for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 20:38:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLxeM-00019D-D6 for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 20:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Feb 2022 01:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53831 X-GNU-PR-Package: emacs Original-Received: via spool by 53831-submit@debbugs.gnu.org id=B53831.16454074614385 (code B ref 53831); Mon, 21 Feb 2022 01:38:02 +0000 Original-Received: (at 53831) by debbugs.gnu.org; 21 Feb 2022 01:37:41 +0000 Original-Received: from localhost ([127.0.0.1]:34287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLxe0-00018f-Sd for submit@debbugs.gnu.org; Sun, 20 Feb 2022 20:37:41 -0500 Original-Received: from mail-wr1-f48.google.com ([209.85.221.48]:44656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLxdz-00018T-2C for 53831@debbugs.gnu.org; Sun, 20 Feb 2022 20:37:39 -0500 Original-Received: by mail-wr1-f48.google.com with SMTP id u1so24371239wrg.11 for <53831@debbugs.gnu.org>; Sun, 20 Feb 2022 17:37:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=j4C5ec73V+5JPIwado4WP1wc1nTXtZ3d8nKn4UN01dk=; b=mA4QjMwtgQV1GuuQo2Ha/7723Q6RzGtXsOtTCJ/y7h1jwMFbjZt2NMTeegkulMBq8B YqGyPCXF0xzVfMrhzAiK9d/wOcQlIx72OYY3EuZNuEm66rhIBpRDuhSBwrs5yLw/mFBs h2zKUOW1TSIdHV1hN7Q74JbMBceDi5dpzaEU4jbXGTi88dEwFV25tdd1cuz+FHnmcNHP djNrZvRFSF1Vi04LUvti8ntHbb9OMlLAfoHYr9aMT4E7vrfu2H+hy4fTvn+AG0t6BS02 sJupZjUoKI926XLPkKwb0pXx/mS21jUZCcwM+XcamUpNU/0HhywWgQqvU+uXaXhpAcP1 RQEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=j4C5ec73V+5JPIwado4WP1wc1nTXtZ3d8nKn4UN01dk=; b=0NkADOp1wWRppZySC50fWxC4PMtHdG6Pw6/xkww7Ad0Kv92thbKpwD5OAqC9Lt235z bJJ6voHzfef7rEumbxdgxkVCyqjRtkjXH6zJnhcCWZ+oBL5/bbTLfJZ9nsFWxAZZRDSa husiwcW+TEtMlgs1T0utZDFJ2L6ZMpFag1dHjafs0JY1EZ+OeJRF6K9b1wWuXfVOw+gq lFvg5YN1qVENQvWhHlZMg+WxivXbyVdrl/KZx9/oEePYf80KQCuT3m0/LmaxtId58Bq8 ERhUPX8cCnhGVaxuywGaqwwQPmDrsiijJjpduWkbQ1hK1LImzh7j9OmRRz5LqpJ45tLU 50NA== X-Gm-Message-State: AOAM532Sbr3VL815HPmD5x8OcIsnnPcyi5O9ZAKgzZg3u7Y2bFHh3Qgb 1UcCPyWkESuMraFW+7Ndj8Y= X-Google-Smtp-Source: ABdhPJyc3ONodB9eURRG7zPm37ALbdaovvEt2lercQ/PCjY6aAueQFrLlRTgP6Y7YRMX5yWCJ2QGeA== X-Received: by 2002:a5d:6411:0:b0:1e5:6bed:3df6 with SMTP id z17-20020a5d6411000000b001e56bed3df6mr14202941wru.477.1645407453230; Sun, 20 Feb 2022 17:37:33 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id t16sm6412192wmq.43.2022.02.20.17.37.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Feb 2022 17:37:32 -0800 (PST) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227297 Archived-At: Hi! On 07.02.2022 00:56, Robert Irelan wrote: > - Eventually, we attempt a `call-process` with the command line > `git --no-pager ls-files -c -z -- .git/modules/.doom.d/COMMIT_EDITMSG` > with `default-directory` set to `~`. This command takes around 20 > seconds to exit with an empty output and exit status 0. I believe at > this point the code may continue to loop, since it hangs for longer > than that until I hit `C-g` a bunch of times. Any idea why it hangs? Is that because of the size of the repository, or something like that? I've tried to recreate this problem, but even with large repos 'git --no-pager ls-files -c -z -- .git/modules/.doom.d/COMMIT_EDITMSG' returns pretty quickly. Does it take 20 seconds when running from a terminal? What if you try that with different files inside '.git'? > I propose that `vc-git-registered` return nil if the path contains `/.git/`, since the contents of `.git` are never part of the Git repository. This can work. Though I'd rather understand the problem better first.