git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] Fix handling of matching nonbare repo vs. matching something under nonbare repo

From
Elijah Newren via GitGitGadget <gitgitgadget@gmail.com>
Date
Aug 12, 2020, 07:12 UTC
Message-ID
<pull.829.git.git.1597216356.gitgitgadget@gmail.com>

This fixes the issue reported at https://lore.kernel.org/git/CADjceoQxoL932W4mkfhG6VOgrQBhs9k6tXkWSkraKVPmUP+uCw@mail.gmail.com/ , a regression in git-2.27.0 (that wasn't reported until after 2.28.0). It involves running ls-files --others with globs when nonbare repositories are present.

Thanks to christian w for reporting, and Kyle Meyer for finding a way to simplify the testcase and bisecting. Very helpful.

Elijah Newren (2):
  t3000: fix some test description typos
  dir: avoid prematurely marking nonbare repositories as matches
 dir.c                      |  9 ++++++---
 t/t3000-ls-files-others.sh | 24 ++++++++++++++++++++----
 2 files changed, 26 insertions(+), 7 deletions(-)
base-commit: 47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-829%2Fnewren%2Fls-files-wildmatch-nonbare-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-829/newren/ls-files-wildmatch-nonbare-v1
Pull-Request: https://github.com/git/git/pull/829
-- 
gitgitgadget
Next: Elijah Newren via GitGitGadget
Message 1 of 3 in “Fix handling of matching nonbare repo vs. matching something under nonbare repo”
  1. 0/2 Fix handling of matching nonbare repo vs. matching something under nonbare repoElijah Newren via GitGitGadget, Aug 12, 2020
  2. 2/2 dir: avoid prematurely marking nonbare repositories as matchesElijah Newren via GitGitGadget, Aug 12, 2020
  3. 1/2 t3000: fix some test description typosElijah Newren via GitGitGadget, Aug 12, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.