bug report
- From
- Theodore Li <teddy.litheodore@gmail.com>
- Date
- Nov 12, 2021, 04:22 UTC
- Message-ID
- <CAHPjYFyzPpUmfoCbvaVg25ZbhkHU8QtxHBmAh2gdT++Xr38HcQ@mail.gmail.com>
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.).
What's different between what you expected and what actually happened? It should set sparse-checkout to the pattern /*, corresponding to the remote repository's root directory instead of adding all the folders and files in the root directory of the user's local machine.
Anything else you want to add:
Please review the rest of the bug report below. You can delete any lines you don't wish to share.
[System Info] git version: git version 2.33.1 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh compiler info: gnuc: 9.3 libc info: glibc: 2.31 $SHELL (typically, interactive shell): /bin/bash
[Enabled Hooks]