Rich-Harris / degit

Straightforward project scaffolding
MIT License
6.93k stars 242 forks source link

This link is not downloading. #330

Closed Quraian closed 2 years ago

Quraian commented 3 years ago

This URL is not being downloaded: https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/test/integration-tests/samples/3.x/IntegrationTestsSample

No errors or anything, just empty folder.

When I try this: https://github.com/dotnet/AspNetCore.Docs/ It works!

I'm on Windows 10.

Thanks Rich for the utility btw :)

nake89 commented 2 years ago

Hello,

I think you are using degit slightly incorrectly. The documentation describes usage as: degit user/repo/subdirectory

I tested this way and it runs successfully. I hope this helped. :)

➜  tmp npx degit dotnet/AspNetCore.Docs/aspnetcore/test/integration-tests/samples/3.x/IntegrationTestsSample asd
> cloned dotnet/AspNetCore.Docs#HEAD to asd
➜  tmp ls -la asd
total 0
drwxrwxr-x  4 kivi.local  staff  128 Sep 22 09:58 .
drwxr-xr-x  7 kivi.local  staff  224 Sep 22 09:58 ..
drwxrwxr-x  3 kivi.local  staff   96 Sep 22 09:58 src
drwxrwxr-x  3 kivi.local  staff   96 Sep 22 09:58 tests
➜  tmp
Quraian commented 2 years ago

@nake89 You are right 🤦‍♂️🤦‍♂️🤦‍♂️

Thank you!