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

Re: "reject arguments in cone-mode that look like patterns" doesn't work in macos-12

From
Victoria Dye <vdye@github.com>
Date
Jul 14, 2022, 19:18 UTC
Message-ID
<4f4d5d03-2a0d-19c1-fd2e-80ab86aa1145@github.com>
In-Reply-To
<BL0PR13MB427533B25CCFE6A37F7619E8F1889@BL0PR13MB4275.namprd13.prod.outlook.com>
fawaz ahmed0 wrote:
> Please refer: https://github.com/git/git/commit/8dd7c4739bded62175bea1f7518d993b39b51f90#commitcomment-78433458
> 
> 
> Using patterns in cone mode should fail, but it doesn't seem to fail on macOS-12(github actions)

Can you confirm which version is being used on that MacOS agent? For example, you could add a call to 'git version' in the workflow and see what it prints out. I suspect that the agent may be using an older version of Git, which would mean that the sparse-checkout is initialized in *non* cone mode.

For what it's worth, my local development machine is also MacOS 12 (running Git v2.37), and I'm correctly seeing the error in a cone mode sparse-checkout.

Show 8 quoted lines
> 
> Step to reproduce(try in macOS-12):
> 
> git clone --filter=blob:none --no-checkout --depth 1 --sparse https://github.com/fawazahmed0/currency-api.git . 
> git sparse-checkout add 'latest/*'
> 
> Thanks
> Fawaz Ahmed
Previous: fawaz ahmed0Next: Victoria Dye
Message 2 of 4 in “"reject arguments in cone-mode that look like patterns" doesn't work in macos-12”
  1. fawaz ahmed0Jul 14, 2022
  2. Victoria DyeJul 14, 2022
  3. Victoria DyeJul 14, 2022
  4. fawaz ahmed0Jul 14, 2022

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.