Git Mailing List Archive on lore.kernel.org
 help / color / Atom feed
From: Martin Melka <martin.melka@gmail.com>
To: git@vger.kernel.org
Subject: git status --ignored hangs when a deep directory structure present in working tree
Date: Mon, 27 Jan 2020 11:55:01 +0100
Message-ID: <CANt4O2L_DZnMqVxZzTBMvr=BTWqB6L0uyORkoN_yMHLmUX7yHw@mail.gmail.com> (raw)

Hi all, I have ran across what might be a bug in git. When there is a
deep directory structure (tried on 100+ nested dirs), then git status
--ignored hangs indefinitely.
Discovered this on OSX (Mojave, git 2.20.1 (Apple Git-117)), but it
reproduces in Ubuntu (19.04, git 2.25.0) Docker container on OSX and
also on baremetal Ubuntu server (16.04, git 2.17.1).

Steps to reproduce:

1. Generate the deep dir structure:

    mkdir gittest; pushd gittest; git init; for i in $(seq 1 120); do
mkdir dir; cd dir; done; touch leaf; popd

2. Try to get git status --ignored

    cd gittest && git status --ignored


If there is a dir depth limit, git should probably exit with an error
rather than getting stuck endlessly.

StackOverflow report:
https://stackoverflow.com/questions/59928800/git-status-ignored-hangs-indefinitely

Best regards,
Martin Melka

             reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27 10:55 Martin Melka [this message]
2020-01-27 12:08 ` SZEDER Gábor
2020-01-28  5:06   ` Elijah Newren
2020-01-28 13:57     ` SZEDER Gábor
2020-01-28 15:00       ` Elijah Newren
2020-01-29 22:10     ` Elijah Newren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANt4O2L_DZnMqVxZzTBMvr=BTWqB6L0uyORkoN_yMHLmUX7yHw@mail.gmail.com' \
    --to=martin.melka@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Mailing List Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/git/0 git/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 git git/ https://lore.kernel.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.git


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git