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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

> 
> 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




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux