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

git sparse-checkout set not working in git 2.27.0

From
AHAlasdair Hurst <alasdairhurst@gmail.com>
Date
Jun 11, 2020, 16:49 UTC
Message-ID
<000801d64010$565b0b70$03112250$@gmail.com>

In git 2.27.0 sparse-checkout doesn't seem to work the same as it did in 2.25.0:

 
Version: git version 2.27.0.windows.1 (the same behavior occurs on 2.27.0 on
linux too)

Commands: -git clone git@repo.com:user/repo <mailto:git@repo.com:user/repo> --no-checkout --depth 1 sparse-repo

-cd sparse-repo
-git sparse-checkout init
-git sparse-checkout add packages
 
Expected behavior (as seen in 0.25):

-ls packages

The packages directory is checked out and available the repo root.
Current behavior
-ls
 
No packages directory is checked out and the root is empty.
 
Next: Elijah Newren
Message 1 of 2 in “git sparse-checkout set not working in git 2.27.0”
  1. Alasdair HurstJun 11, 2020
  2. Elijah NewrenJun 11, 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.