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

Re: bug report

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 12, 2021, 04:29 UTC
Message-ID
<xmqq8rxuj8s8.fsf@gitster.g>
In-Reply-To
<CAHPjYFyzPpUmfoCbvaVg25ZbhkHU8QtxHBmAh2gdT++Xr38HcQ@mail.gmail.com>
Theodore Li <teddy.litheodore@gmail.com> writes:
Show 16 quoted lines
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
>
> What did you do before the bug happened? (Steps to reproduce your issue)
> After cloning a remote repository with the --no-checkout option and
> executing git sparse-checkout init, the bug occurs with any
> sparse-checkout command with the /* pattern (i.e. git sparse-checkout
> set /*).
>
> What did you expect to happen? (Expected behavior)
> The contents of .git/info/sparse-checkout and the output of git
> sparse-checkout list should be '/*'
>
> What happened instead? (Actual behavior)
> Instead, the output is the contents of the user's local root directory
> (i.e. /bin, /boot, /cdrom, etc.).

A blind guess, as I do not use sparse patterns, but perhaps you did not quote the "/*' pattern, i.e. you typed

    $ git sparse-checkout set /*
where you would have got a better behaviour if you typed
    $ git sparse-checkout set "/*"
?
Previous: Theodore LiNext: Theodore Li
Message 2 of 4 in “bug report”
  1. Theodore LiNov 12, 2021
  2. Junio C HamanoNov 12, 2021
  3. Theodore LiNov 12, 2021
  4. Paul SmithNov 12, 2021

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.